7 checkurl('www.google.com');
12 $r = new HttpRequest('http://www.google.com', HTTP_GET);
14 print_r($r->getResponseInfo());
15 $r->setMethod(HTTP_POST);
16 $r->addPostFields(array('q'=>'foobar','start'=>10));
18 var_dump($r->getResponseCode());
19 var_dump($r->getResponseMessage()->getResponseCode());
20 var_dump(false != strstr($r->getResponseBody(), "Not Implemented"));
27 [effective_url] => http://www.google.com/
29 [http_connectcode] => %d
32 [namelookup_time] => %f
34 [pretransfer_time] => %f
35 [starttransfer_time] => %f
37 [redirect_count] => %f
40 [speed_download] => %d
44 [ssl_verifyresult] => %d
45 [content_length_download] => %d
46 [content_length_upload] => %d
48 [httpauth_avail] => %d
49 [proxyauth_avail] => %s