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]

Reply via email to