Re: Streaming download to IE doesn't work
| From: | Daniel Kasak | Date: | Tue, 29 May 2007 23:37:12 +0000 |
| Subject: | Re: Streaming download to IE doesn't work | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-255771@lists.php.net to get a copy of this message | ||
On Tue, 2007-05-29 at 13:52 +0200, Jochem Maas wrote:
> Daniel Kasak wrote:
> > Hi all.
>
> ....
>
> >
> > Who knows WTF is wrong and how I can work around it?
>
> without getting into the holywar of download headers,
> here is one mans's take/solution:
>
> http://richardlynch.blogspot.com/2006_06_01_archive.html
>
> it should contain enough to help you out.
>
> PS. you might recognize the name from the list
> PPS. if you have STFA you would have have found this already, this download
> problem comes up regularly.
Actually, that blog had absolutely nothing to do with my problem
( thanks for RTFP!). Not only that, but the recommendation that I
construct URLs:
http://address.com/script/thing=2/this=3/that=4/download.txt
is patently ridiculous. Anyway, for people who will stumble across this
bug in the future, check out:
http://terra.di.fct.unl.pt/docs/php/function.session-cache-limiter.php.htm
... in particular, adding:
header("Cache-control: private");
header("Pragma: public");
fixed things perfectly. Also note that things worked perfectly with
normal http access from the start; this is required for streaming
downloads to IE over *https*
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: dkasak@nusconsulting.com.au
website: http://www.nusconsulting.com.au