0
我的节点请求参数没有得到它的目标... 我没有找到任何错误......Node.js的POST请求没有工作
var data = querystring.stringify({
image: 'test',
test: 'testitest'
});
var options = {
host: 'www.visionalism.com',
path: path,
method: 'POST'
};
var photo_req = http.request(options, function(response) {
response.setEncoding('utf8');
response.on('data', function (chunk) {
console.log("body: " + chunk);
});
});
console.log(data);
photo_req.write(data);
photo_req.end();
在另一边, POST阵列(PHP)是完整的空...
我错过了什么?
所以你的问题从没有答案列表中消失,你应该标记您的解决方案。 :-) –