const j = request.jar();
const cookie = request.cookie('PHPSSESID=1');
let options = {
method: 'GET',
url: urlqs.includes('http') ? urlqs : 'http://' + urlqs,
headers: {
'User-Agent': 'Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.1'
"set-cookie" : "PHPSSESID=1"
}
};
j.setCookie(cookie, options.url);
有什么方法可以使用请求方法“ Get”设置Cookie值