davetemplin / web-request

Simplifies making web requests with TypeScript async/await
MIT License
35 stars 8 forks source link

Working with Cookies #1

Closed stefanschulz closed 8 years ago

stefanschulz commented 8 years ago

Hi,

I am struggeling with using web-request and cookies. It surely is simple to have web-request activate and return cookies, but I can't seem to get it to use/send the cookie on the follow-up request. Simply sending another request via web-request does not seem to work (no cookie at the server side). The "best" I could get is an error 400 with "Invalid cookie handler" when I try sending the received cookie as header with the next request. In exploring using cookies I also wondered, if there is a way to access the request.jar() method via web-request to create a new jar for cookies, as mentioned in the description of the request module. Or do I have to implement my own jar on CookieJar?

Thanks for any advice, Stefan

davetemplin commented 8 years ago

Closing as it is too old and unfortunately went overlooked by me for too long :( If you still need help with this please reopen and I will try to help.

stefanschulz commented 8 years ago

Thanks, and no worries. I found a different solution and got rid of cookies at all.