X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fclient017.phpt;fp=tests%2Fclient017.phpt;h=a50502803590a0e93c366f51569127b3503ea391;hp=0000000000000000000000000000000000000000;hb=e867316f1364f589eec67cc684703c874984430b;hpb=baff99d75b56868714f7f2ed1972b3baceb72014 diff --git a/tests/client017.phpt b/tests/client017.phpt new file mode 100644 index 0000000..a505028 --- /dev/null +++ b/tests/client017.phpt @@ -0,0 +1,33 @@ +--TEST-- +client request gzip +--SKIPIF-- + +--FILE-- +setOptions(array("compress" => true)); + +$client->enqueue(new http\Client\Request("GET", "http://dev.iworks.at/ext-http/.print_request.php")); +$client->send(); + +echo $client->getResponse(); + +?> +===DONE=== +--EXPECTF-- +Test +HTTP/1.1 200 OK +Vary: Accept-Encoding +Content-Type: text/html +Date: %s +Server: %s +X-Original-Transfer-Encoding: chunked +X-Original-Content-Encoding: gzip +===DONE=== \ No newline at end of file