譬如这个
人生最曼妙的风景,竟是内心的淡定与从容!
var j = request.jar() request({url: 'http://www.google.com', jar: j}, function () { var cookie_string = j.getCookieString(url); // "key1=value1; key2=value2; ..." var cookies = j.getCookies(url); // [{key: 'key1', value: 'value1', domain: "www.google.com", ...}, ...] })
Guess you are using the request library? If cookies are set in the response, you can try
response.headers['Set-Cookie']
Guess you are using the request library? If cookies are set in the response, you can try
response.headers['Set-Cookie']