I have also just tried the same situation with PHP 4.3.0 Pre 2 isapi module and I get 
the same response.  This looks like something that wont be fixed anytime soon.  I am 
afraid I may have to use asp.  yuck.

Thanks for your help.  If anyone has any other ideas about getting rid of that 
"Connection: Close" header I would be very grateful.

Thanks
Charles Killmer

-----Original Message-----
From: Charles P. Killmer 
Sent: Thursday, November 07, 2002 2:43 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] PHP vs ASP headers


I tried that.  It seems PHP will only replace headers that PHP sent.  Not headers sent 
by IIS.

-----Original Message-----
From: Maxim Maletsky [mailto:maxim@;php.net]
Sent: Thursday, November 07, 2002 2:42 PM
To: Charles P. Killmer
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] PHP vs ASP headers



Capitalize it:

header("Connection: Keep-Alive");

here's some nice info for you:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iisref/html/psdk/asp/devs9vtx.asp

--
Maxim Maletsky
[EMAIL PROTECTED]



"Charles P. Killmer" <[EMAIL PROTECTED]> wrote... :

> Why does this code in ASP 
>       Response.addheader "Content-type","application/pdf"
>       Response.addheader "Content-Disposition","inline; filename=25-1.pdf"
> 
> Result in these headers
> 
> HTTP/1.1 200 OK
> Server: Microsoft-IIS/5.0
> Date: Thu, 07 Nov 2002 19:57:52 GMT
> Content-type: application/pdf
> Content-Disposition: inline; filename=25-1.pdf
> Content-Type: text/html
> Cache-control: private
> Transfer-Encoding: chunked
> 
> 
> When this code in PHP 4.2.3 Isapi
>       header("Content-type: application/pdf");
>       header("Content-Disposition: inline; filename=25-1.pdf");
>       header("Content-Type: text/html",false);
>       header("Cache-control: private");
>       header("Transfer-Encoding: chunked");
> 
> Result in these headers (Note the Connection: Close)
> 
> HTTP/1.1 200 OK
> Server: Microsoft-IIS/5.0
> Date: Thu, 07 Nov 2002 19:59:50 GMT
> Connection: close
> Content-type: application/pdf
> Content-Disposition: inline; filename=25-1.pdf
> Content-Type: text/html
> Cache-control: private
> Transfer-Encoding: chunked
> 
> 
> I need to stop IIS from sending the Connection: Close
> 
> Charles Killmer
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to