#16173 [Opn->Bgs]: https & headers (Content-type) not working
| From: | sesser@php.net | Date: | Fri, 16 Aug 2002 07:01:22 +0000 |
| Subject: | #16173 [Opn->Bgs]: https & headers (Content-type) not working | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-16988@lists.php.net to get a copy of this message | ||
ID: 16173
Updated by: sesser@php.net
Reported By: phpbug@aelea.com
-Status: Open
+Status: Bogus
Bug Type: IIS related
Operating System: win2k SP2
PHP Version: 4.1.2
New Comment:
This is an Internet Explorer Bug. Search the Microsoft Knowledgebase.
It has something to do with the caching headers.
Previous Comments:
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
[2002-06-26 07:16:25] pgarre@ijcreditor.es
This is not just IIS related.
I run Apache 1.3.26 on Linux (RD7.2) and PHP 4.1.2 and I also suffer
the problem.
I believe it is just related to IE clients.
And
header("Pragma: ");
header("Cache-Control: ");
does not work for me.
I also believe the problem is that headers are corrupted.
Pedro.
------------------------------------------------------------------------
[2002-06-25 07:50:17] andrzejw@lomac.net
This is problem of Internet Explorer. Other browsers should work fine.
To solve this add:
header("Pragma: ");
header("Cache-Control: ");
And then it should work with https.
Best regards,
Andrzej
------------------------------------------------------------------------
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