-
Notifications
You must be signed in to change notification settings - Fork 434
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Cookie and php-phantomjs #124
Comments
Any updates on this? We've got a use-case for this library but only if it can work with predefined cookies. |
I will be working on v4.6 over the next few days so I will try and get cookie management in there. |
Session cookies are still missing and do not appear in the predefined cookie file. Also pushing cookies via $request->addHeader and addCookie do not appear in the response (Set-Cookie) hence missing flow among different requests. But definitely request object shows some cookie is going to add via addCookie: [cookies:protected] => Array
But nothing appears regarding forced cookies, neither in the response nor in predefined cookie file, what is the failure here? |
@imam-zeropoint Session cookies are not stored in cookie file, according to this issue. @jonnnnyw, I have made a pull request #172 which adds ability to get cookies programmatically from response, without using --cookies-file flag. |
@stexaz I also need cookies to pass between requests. I just checked out your code - looks like a nice job :)! @jonnnnyw |
Did anyone ever fix this ? |
Go go go go.... |
Sadly... |
Hi,
I have a file named predefinedcookie.txt that I already use for a list of websites compatible with curl. I would like to know how can I use it with php-phantomjs or what do I have to do to push cookie's variable in my request.
Best regards.
Luc
The text was updated successfully, but these errors were encountered: