2 Bug #69313 (http\Client doesn't send GET body)
11 include "helper/dump.inc";
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 dump_message(null, $client->getResponse());
35 X-Original-Transfer-Encoding: chunked
40 Content-Type: text/plain
43 X-Original-Content-Length: 3