我正在使用httpSync模块从服务器获取数据。
我有如下示例
var httpsync = require('httpsync');
var req = httpsync.request({
url: url,
method: "POST"
});
笔记:
I am using httpSync because i want the request to behave synchronous.
I cannot add original code
如何使用将表单数据发送到服务器httpSync
我已经尝试了以下但它不工作
var req = httpsync.request({
url: url,
method: "POST"
form:{a:1,b:1}
});
任何建议将不胜感激