UgghUgghUggh
Programmer
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.
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.