#16173 [Com]: https & headers (Content-type) not working
| From: | rq at erasethis dot uosis dot mif dot vu dot lt dot removeme | Date: | Sun, 09 Feb 2003 00:38:15 +0000 |
| Subject: | #16173 [Com]: https & headers (Content-type) not working | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-32528@lists.php.net to get a copy of this message | ||
ID: 16173
Comment by: rq@erasethis.uosis.mif.vu.lt.removeme
Reported By: phpbug@aelea.com
Status: Bogus
Bug Type: IIS related
Operating System: win2k SP2
PHP Version: 4.1.2
New Comment:
Well, seems like the workaround from the user end is just choosing an
appropriate encoding when viewing a webpage. I was trying to see a
squirrelmail login page from my home box thru https and it did not
display. When i chose "view source", i can see everything in notepad.
Then i found that under View > Encoding the selected option is
Estonian(ISO) which is marked gray (as unavailable). When I changed the
encoding to any else (even if it wasn't right for that page), i could
see that page.
in my case, the server is FreeBSD + apache-ssl + php, and the client is
my home box running Win98+IE6.0
Previous Comments:
------------------------------------------------------------------------
[2002-11-13 06:54:18] rupert.schlick@gmx.net
the relevant article is:
http://support.microsoft.com/default.aspx?scid=kb;en-us;316431
------------------------------------------------------------------------
[2002-08-16 03:01:21] sesser@php.net
This is an Internet Explorer Bug. Search the Microsoft Knowledgebase.
It has something to do with the caching headers.
------------------------------------------------------------------------
[2002-08-15 18:08:50] caetin@u.washington.edu
this isn't just an issue in https and windows, its also http, and also
on linux. If you have session_start in there and just put out a
content-type and content-disposition, it will barf on you if you try to
choose "open" instead of "save" .. "save" works fine. If you take out
the session-start() it works great. If you use the headers trick noted
two posts up, it also works great.
Tested under ie4/5/5.5/6 ns4.78/4.79/6
------------------------------------------------------------------------
[2002-07-10 15:14:16] jeffcool@hotmail.com
Apache 1.3.26 and PHP 4.2.1
I also came across this issue, and pgarre@ijcreditor.es headers (minus
the last one) FIX the problem. However in trying to tack down the
issue I found that taking out the session check on the page also fixed
the problem? It seems odd that using sessions would change the
behavior of IE.
------------------------------------------------------------------------
[2002-06-26 07:28:08] pgarre@ijcreditor.es
The "magic" headers that andrzejw@lomac.net do work, but note:
header("Pragma: ");
header("Cache-Control: ");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate"); //
HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
Does not work because of the last header !!
It works when I comment it out !!
Pedro.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/16173
--
Edit this bug report at http://bugs.php.net/?id=16173&edit=1