- Fix property handling
[m6w6/ext-http] / tests / get_request_data_001.phpt
1 --TEST--
2 get request data
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 ?>
7 --ENV--
8 HTTP_ACCEPT_CHARSET=iso-8859-1, *
9 HTTP_USER_AGENT=Mozilla/5.0
10 --POST--
11 a=b&c=d
12 --FILE--
13 <?php
14 echo "-TEST\n";
15 $h = http_get_request_headers();
16 ksort($h);
17 print_r($h);
18 $b = http_get_request_body();
19 if (php_sapi_name() == 'cli' || $b == 'a=b&c=d') {
20 echo "OK\n";
21 }
22 ?>
23 ===DONE===
24 --EXPECTF--
25 %sTEST
26 Array
27 (
28 [Accept-Charset] => iso-8859-1, *
29 [User-Agent] => Mozilla/5.0
30 )
31 OK
32 ===DONE===