projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
6acc378
)
- another test
author
Michael Wallner
<mike@php.net>
Sun, 24 Jul 2005 18:23:37 +0000
(18:23 +0000)
committer
Michael Wallner
<mike@php.net>
Sun, 24 Jul 2005 18:23:37 +0000
(18:23 +0000)
tests/get_request_data_001.phpt
[new file with mode: 0644]
patch
|
blob
diff --git a/tests/get_request_data_001.phpt
b/tests/get_request_data_001.phpt
new file mode 100644
(file)
index 0000000..
4b9437a
--- /dev/null
+++ b/
tests/get_request_data_001.phpt
@@ -0,0
+1,26
@@
+--TEST--
+get request data
+--SKIPIF--
+<?php
+include 'skip.inc';
+?>
+--ENV--
+HTTP_ACCEPT_CHARSET=iso-8859-1, *
+HTTP_USER_AGENT=Mozilla/5.0
+--POST--
+a=b&c=d
+--FILE--
+<?php
+echo "-TEST\n";
+print_r(http_get_request_headers());
+var_dump(http_get_request_body());
+?>
+--EXPECTF--
+%sTEST
+Array
+(
+ [Accept-Charset] => iso-8859-1, *
+ [User-Agent] => Mozilla/5.0
+)
+string(7) "a=b&c=d"
+