怎么用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;
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
人生最曼妙的风景,竟是内心的淡定与从容!