- bugs
[m6w6/ext-http] / tests / HttpRequest_003.phpt
1 --TEST--
2 HttpRequest SSL
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 (5 > (int) PHP_VERSION) and die('skip PHP5 is required for Http classes');
7 ?>
8 --FILE--
9 <?php
10 $r = new HttpRequest('https://ssl.arweb.info/iworks/data.txt');
11 $r->send();
12 var_dump($r->getResponseBody());
13 ?>
14 --EXPECTF--
15 Content-type: text/html
16 X-Powered-By: PHP/%s
17
18 string(10) "1234567890"