Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP HttpRequest getBody

Status
Not open for further replies.

UgghUgghUggh

Programmer
Mar 7, 2012
1
US
Hi,

Looking for a little help with PHP PECL HttpRequest::METH_POST

I am doing the following:

$myRequest = new HttpRequest(' HttpRequest::METH_POST);
$myRequest->addPostFields(array('color' => '$post_color'));
try {
echo $myRequest->send()->getBody();
} catch (HttpException $ex) {
echo $ex;
}

Thing are working all most the way that I want them to except for the fact that the following server info is being injected into my html code.

HTTP/1.1 200 OK
Date: Sun, 18 Mar 2012 12:58:08 GMT
Server: Apache/2.2.20 (Ubuntu)
Vary: Accept-Encoding
Connection: close
Content-Type: text/html

The question is what option do I use or how do I suppress the following so that it does not appear in my html code?

Thanks for your time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top