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

how to carry the cookies split by ; symbol? #2371

Closed
ghost opened this issue Sep 11, 2016 · 3 comments
Closed

how to carry the cookies split by ; symbol? #2371

ghost opened this issue Sep 11, 2016 · 3 comments
Labels

Comments

@ghost
Copy link

ghost commented Sep 11, 2016

here's a example:
if there are at lease two keys need to be carried such as : {"a":"1","b":"2"}
and then if I code like this:

var cookie = request.cookie('a=1;b=2');

We will find out that the second key might be lost at the request
How to resolve it?

@try-to-fly
Copy link

I have the same problem, have you resolved it?

@poonai
Copy link

poonai commented Dec 5, 2016

cookie = 'a=1;b=2'
 cookie.split(';').forEach((x) => {
      jar.setCookie(request.cookie(x), 'https://vtop.vit.ac.in/student/stud_login_submit.asp')
})

this is how i added multiple cookie for detailed example check this out
(https://github.com/sch00lb0y/Vit-Photo/blob/master/scripts/lib.js)

@stale
Copy link

stale bot commented Nov 23, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 23, 2018
@stale stale bot closed this as completed Dec 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants