"John W. Holmes" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Andreas Magnusson wrote:
>
> > And through PHP (my script) it is:
> >
> > Accept-Ranges: bytes
> > Cache-Control: private
>
> I've had the cache-control header cause problems with IE in the past.
> It's sent by starti
Andreas Magnusson wrote:
And through PHP (my script) it is:
Accept-Ranges: bytes
Cache-Control: private
I've had the cache-control header cause problems with IE in the past.
It's sent by starting a session, not something you manually send. You
can change it using the session functions, though.
Hi!
Andreas Magnusson wrote:
> For a normal file (not through PHP) the headers are:
>
> Accept-Ranges: bytes
> Connection: Close
> Content-Length: 25600
> Content-Type: application/msword
> Date: Tue, 23 Dec 2003 09:51:19 GMT
> ETag: "08f72d578c3c31:8d0"
> Last-Modified: Tue, 16 Dec 2003 02:03:44
Thank you for your reply!
> AFAIK the headers sent here are:
>
> 'Content-Type' => 'application/x-octetstream', (perhaps other)
> 'Cache-Control' => 'public',
> 'Accept-Ranges' => 'bytes',
> 'Connection'=> 'close'
[snip]
> Did you try something like this:
>
>h
Hi!
Andreas Magnusson wrote:
I'm writing a script to view/download an email-attachment. If the file
happens to be an MS Word document and the browser IE (only tried with
6.0), then the download fails.
If I choose to download (Content-Disposition: attachment;
filename="whatever.doc") then only a pa
eded to get that one functionality working for me. I hope
examining it can help...
Larry
-Original Message-
From: Andreas Magnusson [mailto:[EMAIL PROTECTED]
Sent: Monday, December 22, 2003 1:44 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: HTTP headers, IE and downloading
Thanks for your rep
Hi!
Andreas Magnusson wrote:
>> Have a look at: http://pear.php.net/package/HTTP_Download
> I looked at it and it's hard to see what it does differently from
> what I do...
Use Ethereal or your own tracer to find out! And compare to a direct request
to a real file!
AFAIK the headers sent here are
Did you try session_cache_limiter('private_no_expire')?
Andreas Magnusson wrote:
Thanks for your reply!
Have a look at: http://pear.php.net/package/HTTP_Download
I looked at it and it's hard to see what it does differently from what I
do...
And the first comment of:
http://www.php.net/manual
Thanks for your reply!
> Have a look at: http://pear.php.net/package/HTTP_Download
I looked at it and it's hard to see what it does differently from what I
do...
> And the first comment of:
> http://www.php.net/manual/en/function.session-cache-limiter.php
Thanks, I've read that and I'm not usi
Hi!
Andreas Magnusson wrote:
> I'm writing a script to view/download an email-attachment. If the file
> happens to be an MS Word document and the browser IE (only tried with
> 6.0), then the download fails.
> If I choose to download (Content-Disposition: attachment;
> filename="whatever.doc") then
10 matches
Mail list logo