X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fclient017.phpt;fp=tests%2Fclient017.phpt;h=833287a6b2b3824362f2343102089138c9fbc433;hp=a50502803590a0e93c366f51569127b3503ea391;hb=984753a9c35c3da8262c9bb415c61dd7b2571fd3;hpb=bff13b495ce6b2d6cb9a13f963046fcc2991349c diff --git a/tests/client017.phpt b/tests/client017.phpt index a505028..833287a 100644 --- a/tests/client017.phpt +++ b/tests/client017.phpt @@ -3,31 +3,36 @@ client request gzip --SKIPIF-- --FILE-- setOptions(array("compress" => true)); +echo "Test\n"; -$client->enqueue(new http\Client\Request("GET", "http://dev.iworks.at/ext-http/.print_request.php")); -$client->send(); +server("env.inc", function($port) { + $request = new http\Client\Request("GET", "http://localhost:$port/"); + + $client = new http\Client; + $client->setOptions(array("compress" => true)); -echo $client->getResponse(); + $client->enqueue($request); + $client->send(); + echo $client->getResponse(); +}); ?> ===DONE=== --EXPECTF-- Test HTTP/1.1 200 OK +Accept-Ranges: bytes +X-Request-Content-Length: 0 Vary: Accept-Encoding -Content-Type: text/html -Date: %s -Server: %s +Etag: "%s" X-Original-Transfer-Encoding: chunked -X-Original-Content-Encoding: gzip -===DONE=== \ No newline at end of file +X-Original-Content-Encoding: deflate +===DONE=== +