Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using cookie option provided is not working in the html request, while conversion #85

Open
Ramprasad2k2 opened this issue Dec 15, 2017 · 1 comment

Comments

@Ramprasad2k2
Copy link

Ramprasad2k2 commented Dec 15, 2017

Hi,
I am using the option "Cookies" provided in the phantom-html-to-pdf, but while sending the request to html, I did not find any cookies attached with that request. I checked this with fiddler/postman, but unable to find cookies in that request. I am unable to find the reason why it is not attaching cookies even though its provided in the option. Please help.

    cookies: [{
        name: "cookie_name",
        value: "value"
    }],

I am passing cookies as array of objects, even though its not working. Can you please ensure your side, whether this option takes the cookies with the request?

@Ramprasad2k2 Ramprasad2k2 changed the title How to pass cookies values or sessions when url is requested using cookie option provided is not working in the html request, while conversion Dec 18, 2017
@ghost
Copy link

ghost commented Jun 9, 2018

With PhantomJS 2 it is working. Upgrade by following this:
https://www.npmjs.com/package/phantom-html-to-pdf#phantomjs2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant