|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-03-19 16:13 UTC] phpbug at aelea dot com
Using IIS on win2k with php 4.1.2 (binary install)
using readfile() to download a file (xls, doc, pdf, etc.) with prior sending of header("Content-type: application/pdf") for example does not work - client is IE6, and IE5.5
It acts as though headers are being corrupted under https. Same script works fine under http.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 19:00:01 2025 UTC |
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, AndrzejThis 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.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.