release 1.7.5
[m6w6/ext-http] / tests / request_cookies.phpt
index 38428f3ca76271969cf64248ec8f3fab141a2fc2..f83f46a0704f46af1b0f3efca86c5b948d070f91 100644 (file)
@@ -12,7 +12,7 @@ echo "-TEST\n";
 
 $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));
@@ -22,27 +22,27 @@ echo $r->getHistory()->toString(true);
 echo "Done\n";
 ?>
 --EXPECTF--
-%sTEST
-GET /.print_request.php HTTP/1.1
-User-Agent: %s
+%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
-%s
+%a
 
 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: */*
 Cookie: name=val=ue;
 HTTP/1.1 200 OK
-%s
+%a
 
 Array
 (