14 $body = new http\Message\Body;
15 $body->append("foobar");
17 $request = new http\Client\Request;
18 $request->setBody($body);
19 $request->setRequestMethod("POST");
20 $request->setRequestUrl("http://dev.iworks.at/ext-http/.print_request.php");
22 $client = new http\Client;
23 $client->recordHistory = true;
25 $client->enqueue($request)->send();
26 echo $client->getHistory()->toString(true);
28 $client->requeue($request)->send();
29 echo $client->getHistory()->toString(true);
35 POST http://dev.iworks.at/ext-http/.print_request.php HTTP/1.1
41 Content-Type: text/html
44 X-Original-Transfer-Encoding: chunked
49 POST http://dev.iworks.at/ext-http/.print_request.php HTTP/1.1
55 Content-Type: text/html
58 X-Original-Transfer-Encoding: chunked
63 POST http://dev.iworks.at/ext-http/.print_request.php HTTP/1.1
69 Content-Type: text/html
72 X-Original-Transfer-Encoding: chunked