PHP HttpRequest Cookie Issue
- by Daaron
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.