You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ma...@infineon.com on 2006/04/12 12:05:25 UTC

[users@httpd] HTTP response Header from Apache

Hi,
      If the Apache server receives the HTTP request from a client and
while sending the response it always sends the HTTP header Connection :
Close. 
I have written the PHP script in order to send HTTP header "Connection :
Keep-Alive" but what Apache does is it sends out both. 
I mean it sends "Connection : Keep-Alive close " Header. 

Is there any way to inform the Apache to validate the response headers
which is in the php script and send the response accordingly.

Regards
Manamohan  

*Disclaimer*
"This e-mail and any attachments are confidential and may contain trade
secrets or privileged or undisclosed information. They may also be
subject to copyright protection. Please do not copy, distribute or
forward this email to anyone unless authorised. If you are not a named
addressee, you must not use, disclose, retain or reproduce all or any
part of the information contained in this e-mail or any attachments. If
you have received this email by mistake please notify the sender
immediately by return email and destroy/delete all copies of the email."

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] HTTP response Header from Apache

Posted by Nick Kew <ni...@webthing.com>.
On Wednesday 12 April 2006 11:05, Manamohan.Shetty@infineon.com wrote:
> Hi,
>       If the Apache server receives the HTTP request from a client and
> while sending the response it always sends the HTTP header Connection :
> Close.

Nope.  It sometimes sends that, but by no means always.

> I have written the PHP script in order to send HTTP header "Connection :
> Keep-Alive" but what Apache does is it sends out both.
> I mean it sends "Connection : Keep-Alive close " Header.

Sounds like either a bug in your script or an issue with PHP itself.

> Is there any way to inform the Apache to validate the response headers
> which is in the php script and send the response accordingly.

That's what apache will normally do (e.g. with a CGI script).
Maybe something is overriding normal behaviour?

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org