6 checkcls('HttpRequest');
12 $r = new HttpRequest('http://dev.iworks.at/ext-http/.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 /ext-http/.print_put.php5 HTTP/1.1
23 User-Agent: PECL::HTTP/%a
26 Content-Type: text/plain
33 $r = new HttpRequest('http://dev.iworks.at/ext-http/.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));
49 Content-Type: text/html
54 $r = new HttpRequest('http://dev.iworks.at/ext-http/.print_put.php5', HTTP_METH_PUT);
55 $r->recordHistory = true;
56 $r->addHeaders(array('content-type' => 'text/plain'));
57 $r->setPutFile(__FILE__);
59 var_dump($r->getHistory()->toString(true));