2 $r = new HttpRequest('http://dev.iworks.at/.print_request.php', HTTP_METH_POST
);
4 // if redirects is set to true, a single redirect is allowed;
5 // one can set any reasonable count of allowed redirects
7 array( 'cookies' => array('MyCookie' => 'has a value'),
14 array( 'name' => 'Mike',
15 'mail' => 'mike@php.net',
18 // add the file to post (form name, file name, file type)
19 $r->addPostFile('image', 'profile.jpg', 'image/jpeg');
22 print $r->send()->getBody();
23 } catch (HttpException
$e) {