--TEST-- Bug #69313 (http\Client doesn't send GET body) --SKIPIF-- --FILE-- setHeader("Content-Type", "text/plain"); $request->getBody()->append("foo"); $client = new http\Client(); $client->enqueue($request); $client->send(); dump_message(null, $client->getResponse()); }); ?> Done --EXPECTF-- Test HTTP/1.1 200 OK Accept-Ranges: bytes Content-Length: %d Etag: "%s" X-Original-Transfer-Encoding: chunked GET / HTTP/1.1 Accept: */* Content-Length: 3 Content-Type: text/plain Host: localhost:%d User-Agent: %s X-Original-Content-Length: 3 foo Done