ea2cb5f8e7a28f6c742d18fc145d5d9108be6773
[m6w6/ext-http] / tests / request_gzip.phpt
1 --TEST--
2 GZIP request
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkurl('dev.iworks.at');
7 ?>
8 --FILE--
9 <?php
10 echo "-TEST\n";
11
12 var_dump(http_parse_message(http_get('http://dev.iworks.at/.print_request.php?gzip=1', array('compress' => true))));
13
14 echo "Done\n";
15 --EXPECTF--
16 %sTEST
17 object(stdClass)#%d (%d) {
18 ["type"]=>
19 int(2)
20 ["httpVersion"]=>
21 float(1.1)
22 ["responseCode"]=>
23 int(200)
24 ["responseStatus"]=>
25 string(2) "OK"
26 ["headers"]=>
27 array(6) {
28 %s
29 ["Vary"]=>
30 string(15) "Accept-Encoding"
31 ["Content-Type"]=>
32 string(9) "text/html"
33 ["Content-Length"]=>
34 string(2) "27"
35 }
36 ["body"]=>
37 string(27) "Array
38 (
39 [gzip] => 1
40 )
41
42 "
43 ["parentMessage"]=>
44 NULL
45 }
46 Done
47