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) "HTTP/1.1 200 OK
27 Content-Type: text/html
28 X-Original-Transfer-Encoding: chunked
34 $r = new HttpRequest('http://dev.iworks.at/.print_put.php5', HTTP_METH_PUT);
35 $r->recordHistory = true;
36 $r->addHeaders(array('content-type' => 'text/plain'));
37 $r->setPutFile(__FILE__);
39 var_dump($r->getHistory()->toString(true));
43 PUT /.print_put.php5 HTTP/1.1
44 User-Agent: PECL::HTTP/%s
47 Content-Type: text/plain
54 $r = new HttpRequest('http://dev.iworks.at/.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));