Re: How to suppress HTTP headers?

From: Date: Thu, 18 Aug 2005 15:37:15 +0000
Subject: Re: How to suppress HTTP headers?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-220877@lists.php.net to get a copy of this message
Hi Thomas,
I'm trying to respond to a HTTP POST request without sending any HTTP headers with the response (that is, reply with *content only*).
This is really strange problem. :-) I don't know the answer, but I am pretty confident that you're not going to be able to eliminate headers through your PHP code. This is a question that an Apache expert might have a solution to, although I'd be surprised if you could force Apache to misbehave, which is exactly what you're wanting. I think your solution is going to wind up being to write your own "web server" that does not correctly adhere to the protocol, because I doubt you'll find existing software to do this. There is a web server written in PHP (odd, I know), that you can possibly hack to eliminate the HTTP header output. It's called Nanoweb: http://nanoweb.si.kz/ Hope that helps. Let us know how it goes. :-) Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/

« previous php.general (#220877) next »