--TEST-- urlencoded cookies --SKIPIF-- --FILE-- "val=ue"); $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->send(); echo $r->getHistory()->toString(true); echo "Done\n"; ?> --EXPECTF-- %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 %a Array ( [name] => val=ue ) 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 %a Array ( [name] => val=ue ) Done