如何通过在节点js中使用模块请求来通过代理执行POST请求? 代码中的错误
var request = require('request');
var options = {
url: 'https://someurl.com',
proxy: "41.78.25.186:3128",
method : 'POST'
headers : {
'accept':'application/json, text/javascript, */*; q=0.01'
}
};
request(options, function(error, response, body) {
console.log(error);
console.log(response);
console.log(body);
});