var request = require('request')
var cJar = request.jar();
request = request.defaults({
jar: cJar,
strictSSL: false,
rejectUnauthorized: false,
followAllRedirects: true,
headers: {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36'
}
})
网友评论