【发布时间】:2013-05-10 18:03:15
【问题描述】:
我正在尝试发送内容类型为 multipart/mixed 的请求
只需在我的控制器中使用println params这一行打印请求
但是,我不断收到错误消息:the request was rejected because no multipart boundary was found
我不确定这是 grails 中的问题还是我的请求搞砸了。我正在使用 RESTConsole 并将内容类型设置为 multipart/mixed 并将以下内容作为 RAW Body 发送:
--boundary42
Content-Type: text/plain; charset=us-ascii
...plain text version of message goes here....
--boundary42
Content-Type: text/richtext
.... richtext version of same message goes here ...
--boundary42
【问题讨论】:
标签: http grails mime multipart