In WAMP before use this objects you need to make some changes in php.ini file. Add following line into the php.ini file (somewhere near in the extension).
"extension=php_http.dll"
Example
======
user HttpRequest object to handle get method http request
$r= new HttpRequest('www.example.com?valueone=1&valuetwo=2', HttpRequest::METH_GET);
$r->send();
echo $r->getResponseBody();
0 comments:
Post a Comment