X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2FHttpRequest_003.phpt;h=723091afeb3b986c415febde477dea46190e37b3;hp=40d0ba92a53d7ed2745abdf34f56dc26a6d15a96;hb=7a5c865f6faf8b1b6c91735e9d3b040449ea74ba;hpb=19cad54672b6babfac2b7c9c64c415c9a24b888a diff --git a/tests/HttpRequest_003.phpt b/tests/HttpRequest_003.phpt index 40d0ba9..723091a 100644 --- a/tests/HttpRequest_003.phpt +++ b/tests/HttpRequest_003.phpt @@ -3,18 +3,52 @@ HttpRequest SSL --SKIPIF-- --FILE-- '3', 'ssl' => array('version' => '3', 'verifyhost' => '1')); +$r = new HttpRequest('https://ssl.irmler.at/iworks/data.txt'); +$r->setOptions($o); $r->send(); var_dump($r->getResponseBody()); +var_dump(is_object($r->getResponseMessage())); +var_dump(is_object($r->getResponseMessage())); +var_dump(is_object($r->getResponseMessage())); +var_dump($o); +$r->setOptions($o); +$r->send(); +var_dump($o); ?> --EXPECTF-- -Content-type: text/html -X-Powered-By: PHP/%s - +%aTEST string(10) "1234567890" +bool(true) +bool(true) +bool(true) +array(2) { + ["redirect"]=> + string(1) "3" + ["ssl"]=> + array(2) { + ["version"]=> + string(1) "3" + ["verifyhost"]=> + string(1) "1" + } +} +array(2) { + ["redirect"]=> + string(1) "3" + ["ssl"]=> + array(2) { + ["version"]=> + string(1) "3" + ["verifyhost"]=> + string(1) "1" + } +}