怎么用nodejs转发包含img的formdata请求,自己写了一个,但不对
var request = http.request(options,function(result){ var data = "" result.on('data',function(chunk){ data += chunk; }); result.on("end",function(){ data.toString("utf8") call( JSON.parse(data) ); }); }) .on("error",function(err){ console.log(err); })//request.write(postData.name); .end();
};module.exports = proxy;