sending http responses....

sending http responses....

am 15.04.2008 21:56:41 von harikris

Hi All,

I want to be able to respond to certain http client requests without
the webserver meddling with it.
How can i achieve that in php?

When i am use the header() function to send in the status line, like
header('HTTP/1.1 206 Partial Content'), i just want the webserver to
send it RAW or UN-TOUCHED to the client without adding some other
headers like "Connection: Close" on it's own.

I am using Cherokee webserver. I can transition to a different server
if need be.

I am using PHP version 5.2.4

One more thing - How do i make both the header and the content/body
go in the same IP/TCP datatgram/packet? When i wrap the header() and
echo() with ob_start() and ob_end_flush(), i expected the http headers
and the body to get delivered to the client as one packet (the payload
length is less then 1448 bytes in this case). But that's not what i
see when i sniff the traffic.

Thanks in advance.