6 checkcls('HttpRequest');
12 $r = new HttpRequest('http://dev.iworks.at/.print_request.php', HTTP_METH_PUT);
13 $r->recordHistory = true;
14 $r->addHeaders(array('content-type' => 'text/plain'));
15 $r->setPutFile(__FILE__);
17 var_dump($r->getRawRequestMessage());
22 string(467) "PUT /.print_request.php HTTP/1.1
23 User-Agent: PECL::HTTP/0.21.0dev (PHP/5.1.2-dev)
26 content-type: text/plain
33 $r = new HttpRequest('http://dev.iworks.at/.print_request.php', HTTP_METH_PUT);
34 $r->recordHistory = true;
35 $r->addHeaders(array('content-type' => 'text/plain'));
36 $r->setPutFile(__FILE__);
38 var_dump($r->getRawRequestMessage());