projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
* Fixed Bug #64310 (weak etags W/"abc" are quoted as "W/"abc"")
[m6w6/ext-http]
/
tests
/
HttpRequest_004.phpt
diff --git
a/tests/HttpRequest_004.phpt
b/tests/HttpRequest_004.phpt
index a9ade65320c51f4c359188bbe0349666cb384c15..313a4dc137ba93026004184230e066c468708d30 100644
(file)
--- a/
tests/HttpRequest_004.phpt
+++ b/
tests/HttpRequest_004.phpt
@@
-15,7
+15,7
@@
$fields = array(
);
echo "\nFirst Request\n";
);
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());
$r->setPostFields($fields[0]);
$r->addPostFields($fields[1]);
var_dump($r->send()->getBody());
@@
-39,10
+39,10
@@
var_dump($fields);
echo "Done\n";
?>
--EXPECTF--
echo "Done\n";
?>
--EXPECTF--
-%
s
TEST
+%
a
TEST
First Request
First Request
-string(
149
) "Array
+string(
%d
) "Array
(
[int] => 1
[dbl] => 3.1415926535898
(
[int] => 1
[dbl] => 3.1415926535898
@@
-69,7
+69,7
@@
array(2) {
}
Second Request
}
Second Request
-string(
269
) "Array
+string(
%d
) "Array
(
[0] => Array
(
(
[0] => Array
(
@@
-84,7
+84,7
@@
string(269) "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]=>
"
array(2) {
[0]=>
@@
-104,7
+104,7
@@
array(2) {
}
Third Request
}
Third Request
-string(
286
) "Array
+string(
%d
) "Array
(
[0] => Array
(
(
[0] => Array
(
@@
-120,7
+120,7
@@
string(286) "Array
[x] => X
)
[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]=>
"
array(2) {
[0]=>