[PHP] Re: HTTP headers, IE and downloading

2003-12-23 Thread Andreas Magnusson
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: ?php

[PHP] Re: HTTP headers, IE and downloading

2003-12-23 Thread Andreas Korthaus
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 GMT

Re: [PHP] Re: HTTP headers, IE and downloading

2003-12-23 Thread John W. Holmes
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.

Re: [PHP] Re: HTTP headers, IE and downloading

2003-12-23 Thread Andreas Magnusson
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 starting a session,

[PHP] Re: HTTP headers, IE and downloading

2003-12-22 Thread Andreas Korthaus
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

[PHP] Re: HTTP headers, IE and downloading

2003-12-22 Thread Andreas Magnusson
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 using

Re: [PHP] Re: HTTP headers, IE and downloading

2003-12-22 Thread Marek Kilimajer
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:

[PHP] Re: HTTP headers, IE and downloading

2003-12-22 Thread Andreas Korthaus
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:

RE: [PHP] Re: HTTP headers, IE and downloading

2003-12-22 Thread Larry Brown
-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 reply! Have a look at: http://pear.php.net/package/HTTP_Download I looked at it and it's

[PHP] Re: HTTP headers, IE and downloading

2003-12-22 Thread Manuel Lemos
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