travis: allow_failures
[m6w6/ext-http] / tests / client017.phpt
1 --TEST--
2 client request gzip
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 skip_online_test();
7 skip_client_test();
8 ?>
9 --FILE--
10 <?php
11
12 echo "Test\n";
13
14 $client = new http\Client;
15 $client->setOptions(array("compress" => true));
16
17 $client->enqueue(new http\Client\Request("GET", "http://dev.iworks.at/ext-http/.print_request.php"));
18 $client->send();
19
20 echo $client->getResponse();
21
22 ?>
23 ===DONE===
24 --EXPECTF--
25 Test
26 HTTP/1.1 200 OK
27 Vary: Accept-Encoding
28 Content-Type: text/html
29 Date: %s
30 Server: %s
31 X-Original-Transfer-Encoding: chunked
32 X-Original-Content-Encoding: gzip
33 ===DONE===