<?php
include 'skip.inc';
checkver(5);
+checkcls('HttpRequest');
checkurl('www.google.com');
?>
--FILE--
<?php
+echo "-TEST\n";
$r = new HttpRequest('http://www.google.com', HTTP_GET);
var_dump($r->send());
print_r($r->getResponseInfo());
var_dump(false != strstr($r->getResponseBody(), "Not Implemented"));
?>
--EXPECTF--
-Content-type: text/html
-X-Powered-By: PHP/%s
-
+%sTEST
bool(true)
Array
(
[content_length_upload] => %d
[content_type] => %s
[httpauth_avail] => %d
- [proxyauth_avail] => %d
- [num_connects] => %d
+ [proxyauth_avail] => %s
)
int(501)
int(501)