2 $r = new HttpRequest('http://www.google.com');
4 // store Googles cookies in a dedicated file
6 array( 'cookiestore' => '../cookies/google.txt',
11 array( 'q' => '+"pecl_http" -msg -cvs -list',
16 // HttpRequest::send() returns an HttpMessage object
17 // of type HttpMessage::RESPONSE or throws an exception
19 print $r->send()->getBody();
20 } catch (HttpException
$e) {