2 Bug #66388 (Crash on POST with Content-Length:0 and untouched body)
15 include "helper/server.inc";
19 server("proxy.inc", function($port) {
20 $client = new Client();
21 $request = new Request(
23 "http://localhost:$port/",
28 $client->setOptions(["timeout" => 30]);
29 $client->enqueue($request);
30 echo $client->send()->getResponse()->getResponseCode();