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 > > header("Content-Type: application/pdf"); > header("Content-Disposition: inline; filename=foo.pdf"); > header("Accept-Ranges: bytes"); > header("Content-Length: $len"); > header("Expires: 0"); > header("Cache-Control: private"); > // header("Pragma: no-cache");//don't send this header!! > > ?> > > What headers are sent at this moment? Could you post them? 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 Server: Microsoft-IIS/5.0 And through PHP (my script) it is: Accept-Ranges: bytes Cache-Control: private Connection: Close Content-Disposition: inline; filename="testdoc.doc" Content-Length: 25600 Content-Type: application/msword; name="testdoc.doc" Date: Tue, 23 Dec 2003 10:03:35 GMT Expires: 0 Pragma: public Server: Microsoft-IIS/5.0 X-Powered-By: PHP/4.2.2 It seems whatever I try to set the headers I have control over, it doesn't work... Is there anyway one can stop PHP from sending the Pragma at all? > If you send the same headers and the same data - there _can_not_ be any > difference. How should your client recognize any difference? There _must_ be > a difference! Use a very small file to test it, so you can compare the whole > HTTP-Header + Body easily. Yes, there is a difference, I didn't say there wasn't, just that I couldn't see how that (to me) small difference would actually make such a big difference... Thank you very much! /Andreas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php