$m = new HttpEnvRequest();
var_dump($m);
-echo $m;
+echo $m,"\n";
var_dump((string)$m->getBody());
string(3) "1.1"
["headers":protected]=>
array(4) {
- ["Content-Type"]=>
- string(14) "test/something"
- ["Content-Length"]=>
- string(1) "3"
["X-Test"]=>
string(4) "test"
+ ["Content-Length"]=>
+ string(1) "3"
+ ["Content-Type"]=>
+ string(14) "test/something"
["Cookie"]=>
string(7) "foo=bar"
}
array(0) {
}
}
- ["post":protected]=>
+ ["form":protected]=>
object(http\QueryString)#3 (2) {
["errorHandling":protected]=>
NULL
}
POST / HTTP/1.1%a
X-Test: test%a
+Content-Length: 3%a
+Content-Type: test/something%a
Cookie: foo=bar%a
%a
-b=c%a
+b=c
string(3) "b=c"
Done