projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix bug with request_pool+libevent+add-requests-while-running
[m6w6/ext-http]
/
tests
/
request_cookies.phpt
diff --git
a/tests/request_cookies.phpt
b/tests/request_cookies.phpt
index ef99125ece1e5e6006570d139e0f4bd688df75ce..f83f46a0704f46af1b0f3efca86c5b948d070f91 100644
(file)
--- a/
tests/request_cookies.phpt
+++ b/
tests/request_cookies.phpt
@@
-12,7
+12,7
@@
echo "-TEST\n";
$cookies = array("name" => "val=ue");
$cookies = array("name" => "val=ue");
-$r = new HttpRequest("http://dev.iworks.at/.print_request.php", HTTP_METH_GET, array("cookies" => $cookies));
+$r = new HttpRequest("http://dev.iworks.at/
ext-http/
.print_request.php", HTTP_METH_GET, array("cookies" => $cookies));
$r->recordHistory = true;
$r->send();
$r->setOptions(array('encodecookies' => false));
$r->recordHistory = true;
$r->send();
$r->setOptions(array('encodecookies' => false));
@@
-22,31
+22,31
@@
echo $r->getHistory()->toString(true);
echo "Done\n";
?>
--EXPECTF--
echo "Done\n";
?>
--EXPECTF--
-%sTEST
+%aTEST
+GET /ext-http/.print_request.php HTTP/1.1
+User-Agent: %a
+Host: dev.iworks.at
+Accept: */*
+Cookie: name=val%3Due
HTTP/1.1 200 OK
HTTP/1.1 200 OK
-%
s
+%
a
Array
(
[name] => val=ue
)
Array
(
[name] => val=ue
)
-GET /.print_request.php HTTP/1.1
-User-Agent: %
s
+GET /
ext-http/
.print_request.php HTTP/1.1
+User-Agent: %
a
Host: dev.iworks.at
Accept: */*
Host: dev.iworks.at
Accept: */*
-Cookie: name=val
%3Due
+Cookie: name=val
=ue;
HTTP/1.1 200 OK
HTTP/1.1 200 OK
-%
s
+%
a
Array
(
[name] => val=ue
)
Array
(
[name] => val=ue
)
-GET /.print_request.php HTTP/1.1
-User-Agent: %s
-Host: dev.iworks.at
-Accept: */*
-Cookie: name=val=ue;
Done
Done