2 Bug #69357 (HTTP/1.1 100 Continue overriding subsequent 200 response code with PUT request)
12 include "helper/server.inc";
14 server("upload.inc", function($port) {
15 $r = new \http\Client\Request("PUT", "http://localhost:$port/", [],
16 (new \http\Message\Body)->append("foo")
18 $c = new \http\Client;
19 $c->setOptions(["expect_100_timeout" => 0]);
20 $c->enqueue($r)->send();
22 var_dump($c->getResponse($r)->getInfo());
23 var_dump($c->getResponse($r)->getHeaders());
30 string(15) "HTTP/1.1 200 OK"
36 ["X-Original-Transfer-Encoding"]=>