【发布时间】:2014-07-09 22:05:25
【问题描述】:
如何使用 Google Chrome 的邮递员插件通过 POST 将 FormData() 对象发送到 webapi。 FormData() 对象附加了表单字段 personID 和 messageBody。我尝试了类似的方法,但无济于事:
URL of the webapi: http://localhost/<<appName>>/api/v1/message
Headers:
Accept:application/json
Content-Type:multipart/form-data; boundary=---XXX---
form-data:
personID:1 (Text)
messageBody:Hello (Text)
【问题讨论】: