call = "https://aaa@api.twilio.com/2010-04-01/Accounts/sasa/Calls.xml"
fields = { To : "+12321434", From : req.body.from }
request.post
url: call, body: fields (err,response,body) ->
console.log response.body
如何将字段传递给HTTP POST请求?
如果我传递"To=+12321434"
但不是"To=+12321434,From = req.body.from"
答案 0 :(得分:4)
您需要对数据进行字符串化,请查看示例: http://nodejs.org/docs/latest/api/querystring.html#querystring.stringify