- allow passing request options to the ctor
[m6w6/ext-http] / tests / HttpRequest_003.phpt
index cd6edd07b880b065ad3fafb5ff7fe392e9423805..32b134cffb6092d10cee040c4b10e6873a3eff2c 100644 (file)
@@ -3,16 +3,18 @@ HttpRequest SSL
 --SKIPIF--
 <?php
 include 'skip.inc';
-(5 > (int) PHP_VERSION) and die('skip PHP5 is required for Http classes');
+checkver(5);
+checkcls('HttpRequest');
+checkurl('arweb.info');
 ?>
 --FILE--
 <?php
+echo "-TEST\n";
 $r = new HttpRequest('https://ssl.arweb.info/iworks/data.txt');
 $r->send();
 var_dump($r->getResponseBody());
 ?>
 --EXPECTF--
-Content-type: text/html
-X-Powered-By: PHP/%s
-
+%sTEST
 string(10) "1234567890"
+