X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fenvresponse017.phpt;fp=tests%2Fenvresponse017.phpt;h=ffa40cbb6f13fcd444c18ace971671e9b77d4393;hp=0000000000000000000000000000000000000000;hb=3c87e1d64b5d7ca823878093b1387ef2f9bad459;hpb=22d8bd9cce8969e37269f1e817da0904a6af522c diff --git a/tests/envresponse017.phpt b/tests/envresponse017.phpt new file mode 100644 index 0000000..ffa40cb --- /dev/null +++ b/tests/envresponse017.phpt @@ -0,0 +1,28 @@ +--TEST-- +env response stream: no chunked transfer encoding for CONNECTs +--SKIPIF-- + +--FILE-- +setRequestMethod("CONNECT"); +$req->setRequestUrl(["host"=>"www.example.com", "port"=>80]); + +echo $req; + +$res = new http\Env\Response; +$res->setEnvRequest($req); +$res->send(STDOUT); + +?> +===DONE=== +--EXPECTF-- +Test +CONNECT www.example.com:80 HTTP/1.1 +HTTP/1.1 200 OK + +===DONE===