2 Bug #69313 (http\Client doesn't send GET body)
12 include "helper/server.inc";
16 server("proxy.inc", function($port, $stdin, $stdout, $stderr) {
17 $request = new http\Client\Request("GET", "http://localhost:$port/");
18 $request->setHeader("Content-Type", "text/plain");
19 $request->getBody()->append("foo");
20 $client = new http\Client();
21 $client->enqueue($request);
23 echo $client->getResponse();
34 X-Original-Transfer-Encoding: chunked
41 Content-Type: text/plain
43 X-Original-Content-Length: 3