Re: PHP vs ASP headers

From: Date: Thu, 07 Nov 2002 20:41:15 +0000
Subject: Re: PHP vs ASP headers
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-16795@lists.php.net to get a copy of this message
why don't you simply override it with: header("Connection: keep-alive"); I think it only some IIS's default for this case or something.. -- 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 >

« previous php.windows (#16795) next »