Request: Cookies

Created on 7 Apr 2016  ·  3Comments  ·  Source: request/request

I don't understand why so much text, functions and trouble for cookies and "jars" in the README. Can't you simply set 'Cookie' : '...' in request headers?

stale

Most helpful comment

I see no issue with this!

request({
    url: 'http://example.com/',
    headers: {
       Cookie: "PHPSESSID=d90a76cl82inv4l1ekbdgiql10"
    }
})

All 3 comments

I have to agree. Is there a way to specify 'cookie' in the request headers?

I see no issue with this!

request({
    url: 'http://example.com/',
    headers: {
       Cookie: "PHPSESSID=d90a76cl82inv4l1ekbdgiql10"
    }
})

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.

Was this page helpful?
0 / 5 - 0 ratings