以下节点请求模块如何开启详细日志?
https://github.com/mikeal/request
var reqParam = {
'headers': {
'User-Agent': 'CLA'
},
'body': 'CSCCDDSADADDADADADAAAEE',
'strictSSL': true,
'jar': false,
'encoding': null,
'timeout': 300000
};
request.post(reqParam, function (err, res, body) {
if (err) {
console.log('Curl request received an error:' + err);
}
console.log(body);
};
为https://github.com/mikeal/request模块启用http详细日志的选项是什么??
发布于 2014-01-14 06:37:44
你是说调试吗?
NODE_DEBUG=request node yourscript.js
https://stackoverflow.com/questions/21107160
复制相似问题