X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fclient027.phpt;fp=tests%2Fclient027.phpt;h=5d81194c0aa323bdc1f746a05bf625d1594dd1bb;hp=0000000000000000000000000000000000000000;hb=4dc1747e462dff009e7cf1ef63dfb2279a9e37b5;hpb=6e194a97041191f4f3ec8eea68e9d5aba458a6d7 diff --git a/tests/client027.phpt b/tests/client027.phpt new file mode 100644 index 0000000..5d81194 --- /dev/null +++ b/tests/client027.phpt @@ -0,0 +1,50 @@ +--TEST-- +client cookie woes +--SKIPIF-- + +--FILE-- +configure(["pipelining" => false]); + $request = new http\Client\Request("GET", "http://localhost:$port?r1"); + $client->enqueue($request); + $client->send(); + while (($r = $client->getResponse())) { + dump_headers(null, $r->getHeaders()); + } + $client->requeue($request); + $request = new http\Client\Request("GET", "http://localhost:$port?r2"); + $client->enqueue($request); + $client->send(); + while (($r = $client->getResponse())) { + dump_headers(null, $r->getHeaders()); + } +}); + +?> +===DONE=== +--EXPECTF-- +Test +Etag: "" +Set-Cookie: counter=1; +X-Original-Transfer-Encoding: chunked + +Etag: "" +Set-Cookie: counter=2; +X-Original-Transfer-Encoding: chunked + +Etag: "" +Set-Cookie: counter=2; +X-Original-Transfer-Encoding: chunked + +===DONE===