Reputation: 3277
How to enable verbose log for the following node request module?
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);
};
What is the option which will enable http VERBOSE log for the https://github.com/mikeal/request module ??
Upvotes: 30
Views: 34325