Re: HTTP_Request / No body?

From: Date: Sat, 01 Dec 2007 21:40:42 +0000
Subject: Re: HTTP_Request / No body?
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-48630@lists.php.net to get a copy of this message
Philippe Jausions schrieb:
Joe Stump wrote:
Is there a way to *force* HTTP_Request to NOT download the body of a page even if the request type is GET? Curl allows this with the NOBODY option.
Just pass "saveBody" => false in the option and you may also have to set up a listener to simply ignore the "gotBody" notification data passed by the HTTP_Response.
That's not the same. Because you must download the data, even you don't display/use it. Last month, during my work on a small shell wrapper to HTTP_Request, I've had the same problem like Joe. Without a solution and I must also use your way. But IMHO a good idea for a feature request? Because HTTP_Response::process() have allready such an option. Regards, Carsten

« previous php.pear.dev (#48630) next »