- bugs
[m6w6/ext-http] / tests / HttpRequest_003.phpt
diff --git a/tests/HttpRequest_003.phpt b/tests/HttpRequest_003.phpt
new file mode 100644 (file)
index 0000000..cd6edd0
--- /dev/null
@@ -0,0 +1,18 @@
+--TEST--
+HttpRequest SSL
+--SKIPIF--
+<?php
+include 'skip.inc';
+(5 > (int) PHP_VERSION) and die('skip PHP5 is required for Http classes');
+?>
+--FILE--
+<?php
+$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
+
+string(10) "1234567890"