add_cookie method
Status: Beta
Brought to you by:
huni
to setup a site to crawl, there's often the need to circumvent session id's, display styles etc that are stored in cookies. so it would be nice to be able to setup the cookies-array before calling $crawler->go();
at this point, this can be done by manipulating the crawler->cookies-array directly:
$crawler->pageRequest->cookies['mysite.com']['sessionId] = '123456';
the following method would be nice though:
$crawler->addCookie('mysite.com','sessionId','12345');
$crawler->addCookie('mysite.com','currentView','list');
Anonymous
is this feature implemented yet?