10 include "helper/dump.inc";
11 include "helper/server.inc";
15 server("proxy.inc", function($port) {
16 $client = new http\Client;
17 $request = new http\Client\Request("PUT", "http://localhost:$port");
18 $request->setOptions(array("resume" => 1, "expect_100_timeout" => 0));
19 $request->getBody()->append("123");
20 dump_message(null, $client->enqueue($request)->send()->getResponse());
22 // Content-length is 2 instead of 3 in older libcurls
31 X-Original-Transfer-Encoding: chunked
32 X-Request-Content-Length: 2
37 Content-Range: bytes 1-2/3
41 X-Original-Content-Length: %d