6 checkcls('HttpRequest');
12 $r = new HttpRequest('http://dev.iworks.at/.print_put.php5', HTTP_METH_PUT);
13 $r->recordHistory = true;
14 $r->addHeaders(array('content-type' => 'text/plain'));
15 $r->setPutFile(__FILE__);
17 var_dump($r->getHistory()->toString(true));
22 string(%d) "PUT /.print_put.php5 HTTP/1.1
23 User-Agent: PECL::HTTP/%s
26 Content-Type: text/plain
33 $r = new HttpRequest('http://dev.iworks.at/.print_put.php5', HTTP_METH_PUT);
34 $r->recordHistory = true;
35 $r->addHeaders(array('content-type' => 'text/plain'));
36 $r->setPutFile(__FILE__);
38 var_dump($r->getHistory()->toString(true));
48 Content-Type: text/html
49 X-Original-Transfer-Encoding: chunked
55 $r = new HttpRequest('http://dev.iworks.at/.print_put.php5', HTTP_METH_PUT);
56 $r->recordHistory = true;
57 $r->addHeaders(array('content-type' => 'text/plain'));
58 $r->setPutFile(__FILE__);
60 var_dump($r->getHistory()->toString(true));