4 <?php include "skipif.inc"; ?>
6 Content-Type: test/something
13 always_populate_raw_post_data=-1
18 use http\env\Request as HttpEnvRequest;
20 $m = new HttpEnvRequest();
24 echo "Message->toString\n";
27 echo "Body->toString\n";
28 var_dump((string)$m->getBody());
31 var_dump(file_get_contents("php://input"));
40 object(http\Message\Body)#%d (0) {
42 ["requestMethod":protected]=>
44 ["requestUrl":protected]=>
46 ["responseStatus":protected]=>
48 ["responseCode":protected]=>
50 ["httpVersion":protected]=>
52 ["headers":protected]=>
59 string(14) "test/something"
63 ["parentMessage":protected]=>
66 object(http\QueryString)#2 (1) {
67 ["queryArray":"http\QueryString":private]=>
72 object(http\QueryString)#3 (1) {
73 ["queryArray":"http\QueryString":private]=>
85 Content-Type: test/something%a