);
echo "\nFirst Request\n";
-$r = new HttpRequest('http://dev.iworks.at/.print_request.php', HttpRequest::METH_POST);
+$r = new HttpRequest('http://dev.iworks.at/ext-http/.print_request.php', HttpRequest::METH_POST);
$r->setPostFields($fields[0]);
$r->addPostFields($fields[1]);
var_dump($r->send()->getBody());
%sTEST
First Request
-string(149) "Array
+string(%d) "Array
(
[int] => 1
[dbl] => 3.1415926535898
}
Second Request
-string(269) "Array
+string(%d) "Array
(
[0] => Array
(
)
)
-string(56) "0[int]=1&0[dbl]=3.1415926535898&1[str]=something&1[nil]="
+string(72) "0%5Bint%5D=1&0%5Bdbl%5D=3.1415926535898&1%5Bstr%5D=something&1%5Bnil%5D="
"
array(2) {
[0]=>
}
Third Request
-string(286) "Array
+string(%d) "Array
(
[0] => Array
(
[x] => X
)
-string(60) "0[int]=1&0[dbl]=3.1415926535898&1[str]=something&1[nil]=&x=X"
+string(76) "0%5Bint%5D=1&0%5Bdbl%5D=3.1415926535898&1%5Bstr%5D=something&1%5Bnil%5D=&x=X"
"
array(2) {
[0]=>