[H-GEN] Setting up reverse proxy for SSL

Michael Anthon michael at anthon.net
Mon Feb 19 23:41:52 EST 2001


[ Humbug *General* list - semi-serious discussions about Humbug and  ]
[ Unix-related topics.  Please observe the list's charter.           ]
[ Worthwhile understanding: http://www.humbug.org.au/netiquette.html ]

Right, fixed it !!
In case anyone actually cares, it was because the built in session
handling in PHP4 automatically sends the following 2 headers...

Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma: no-cache

I'm not sure exactly WHY it causes a problem, but by overriding the
pragma header the problem goes away.  I suspect that this confuses IE
into thinking that it's not supposed to write the file to disk,
therefore when it tries to open the file it fails, although this is only
conjecture on my part as I can't find anything to say why it doesn't
work (there's a surprise)

Now.. back to what I am supposed to be doing instead of chasing stupid
bugs

Cheers
Michael


> On another note re SSL, I have a PHP script that I am using to deliver
> content.  This content may be one of several different formats (html,
> pdf, ms word and ms excel so far).  To handle this, I was looking at the
> document type, then sending the appropriate Content-type header, a
> Content-length header (Netscape has trouble with PDF documents without
> this... odd) and a Content-disposition header to specify a suggested
> filename.  This was all working rather nicely and works with IE, NS4,
> NS6, Mozilla and Opera.  However, when I switched over to using SSL to
> connect to the server it didn't work so well.  For some reason IE will
> not download the files, it returns some vague error about not being able
> to download the file, showing the name of the script, not the name

--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.



More information about the General mailing list