X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2FHttpRequest_002.phpt;h=349f1faf38c752e4970fda9c31e7748dfa4493c6;hb=f475c8d0d6c24a597cef6e6a441e1fc53578cb84;hp=e2e9672081d0fe1871076b4da9eb0c17bcd1d6cb;hpb=4a1c5914eccd82e0936f35f0804a9e35ed632f83;p=m6w6%2Fext-http diff --git a/tests/HttpRequest_002.phpt b/tests/HttpRequest_002.phpt index e2e9672..349f1fa 100644 --- a/tests/HttpRequest_002.phpt +++ b/tests/HttpRequest_002.phpt @@ -4,12 +4,14 @@ HttpRequest GET/POST --FILE-- send()); +$r->send(); print_r($r->getResponseInfo()); $r->setMethod(HTTP_POST); $r->addPostFields(array('q'=>'foobar','start'=>10)); @@ -19,10 +21,7 @@ var_dump($r->getResponseMessage()->getResponseCode()); var_dump(false != strstr($r->getResponseBody(), "Not Implemented")); ?> --EXPECTF-- -Content-type: text/html -X-Powered-By: PHP/%s - -bool(true) +%sTEST Array ( [effective_url] => http://www.google.com/ @@ -47,9 +46,9 @@ Array [content_length_upload] => %d [content_type] => %s [httpauth_avail] => %d - [proxyauth_avail] => %d - [num_connects] => %d + [proxyauth_avail] => %s ) int(501) int(501) bool(true) +