thank you.
Daniel wrote:
Hi,
I actually just got this working and the answer is unbelievably bizarre.
It all sorta boiled down to the Pragma header. I can't set the pragma header in my servlet and must do it in the Apache httpd.conf like this: Header append Pragma "blah"
And "blah" could be anything and would still work, it's just the fact that it's set in the Apache httpd.conf! Weird, this isn't scientific, I must be missing something. :)
Here's the combo I got it working with:
Pragma: no-cache, blah Cache-Control: private Content-Length: sizeof(stream) Content-disposition: attachment; filename="doc.pdf"
Regards, Daniel
On Thu, 5 Feb 2004, Mark W. Webb wrote:
I am seeing a very similar problem with Tomcat 4.1.24 and Apache over SSL on Solaris 9. I am using Tomcat4.1.24, JDK 1.4.2 Apache 2.0.48(mod_ssl, mod_jk), OpenSSL 0.9.7c. Everything compiled from source except JDK.
Hi,
I'm really stumped and hope someone can provide insight :(
We got a tomcat server connected behind a an apache web server via mod_jk.
when running without ssl, a user submits a form and is able to retrieve a pdf document (they can save or open it) using IE6. But over ssl they would get this error:
"Internet Explorer cannot download doc.pdf from myhost.com. Internet EXplorer was not able to open this Internet site. The requested site is either unavailable or cannnot be found. Please try again later."
This doesn't happen with Mozilla and it would work as expected.
Thing is, we've got a *solution* for this when using mod_python and mod_perl...just not with Java/Tomcat. The solution for those were to set special http headers so IE can interpret things correctly:
- Pragma = 'nocache' - Expires = 'now' - Cache-Control = 'private' - Content-Length = sizeof(stream) - Content-disposition = 'attachment; filename="doc.pdf"'
This was done by a co-worker of mine and it worked. I later saw something about setting Cache-Control = public cuz IE won't "save" private stuff. But even when I explicity setHeader("Cache-Control", "public") I still see Cache-Control = private, public.
So I have 2 questions:
1. Does anyone know why there are two values even when I explicity call setHeader(..) for the Cache-Control? Is Tomcat silently setting this? The source doesn't seem to have that though... :(
2. Has anyone run into this and solved it? I'd be much more interested in this answer :))
We're using: - Tomcat 4.0.6, via mod_jk to Apache 1.3.x with mod_ssl, on Linux. - Turbine 2.3 framework - JDK 1.4.x.
TIA, Daniel
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]