PHP HttpRequest Cookie Issue
Posted
by Daaron
on Stack Overflow
See other posts from Stack Overflow
or by Daaron
Published on 2010-03-29T23:06:05Z
Indexed on
2010/03/29
23:13 UTC
Read the original article
Hit count: 432
I have a chunk of code to login to test a web site login: $r = new HttpRequest($newlocation, HttpRequest::METH_GET); $r->addCookies($cookieArray); $r->send();
The content of $cookieArray is from a redirect, but I don't modify it in any way. The really baked part is that if the value of the cookie (an authentication token string) contains a slash, it doesn't login properly. If it doesn't have a slash, everything works.
Any ideas are appreciated.
© Stack Overflow or respective owner