Re: PHP vs ASP headers
| From: | Maxim Maletsky | Date: | Thu, 07 Nov 2002 20:42:05 +0000 |
| Subject: | Re: PHP vs ASP headers | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-16796@lists.php.net to get a copy of this message | ||
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
maxim@php.net
"Charles P. Killmer" <charlesk@netgaintechnology.com> 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
>