--SKIPIF--
<?php
include 'skip.inc';
-checkmin(5);
+checkmin("5.2.5");
checkcls('HttpRequest');
checkurl('www.google.com');
checkurl('dev.iworks.at');
$r->send();
print_r($r->getResponseInfo());
-$r = new HttpRequest('http://dev.iworks.at/.print_request.php', HTTP_METH_POST);
+$r = new HttpRequest('http://dev.iworks.at/ext-http/.print_request.php', HTTP_METH_POST);
$r->addCookies(array('MyCookie' => 'foobar'));
$r->addQueryData(array('gq'=>'foobar','gi'=>10));
$r->addPostFields(array('pq'=>'foobar','pi'=>10));
echo "Done";
?>
--EXPECTF--
-%sTEST
+%aTEST
Array
(
[effective_url] => http://www.google.com/
[content_length_download] => %d
[content_length_upload] => %d
[starttransfer_time] => %f
- [content_type] => text/html
+ [content_type] => %s
[redirect_time] => %d
[redirect_count] => %d
[connect_code] => %d
[proxyauth_avail] => %d
[os_errno] => %d
[num_connects] => %d
- [ssl_engines] => Array%s
-
- [cookies] => Array%s
-
+ [ssl_engines] => Array
+ %a
+ [cookies] => Array
+ %a
[error] =>
)
Array
(
[name] => data.txt
[type] => text/plain
- [tmp_name] => %s
+ [tmp_name] => %a
[error] => 0
[size] => 1010
)