--FILE--
<?php
-
+include "helper/dump.inc";
include "helper/server.inc";
echo "Test\n";
$client = new http\Client();
$client->enqueue($request);
$client->send();
- echo $client->getResponse();
+ dump_message(null, $client->getResponse());
});
?>
Test
HTTP/1.1 200 OK
Accept-Ranges: bytes
+Content-Length: %d
Etag: "%s"
X-Original-Transfer-Encoding: chunked
-Content-Length: %d
+X-Request-Content-Length: 3
GET / HTTP/1.1
-User-Agent: %s
-Host: localhost:%d
Accept: */*
-Content-Type: text/plain
Content-Length: 3
+Content-Type: text/plain
+Host: localhost:%d
+User-Agent: %s
X-Original-Content-Length: 3
foo