【发布时间】:2015-03-14 22:06:12
【问题描述】:
我有一个第三方应用程序发布数据的控制器操作, 问题是 POST 请求参数为空,这是由于 POST Content-Type = 'text'。 如果我使用 Content-Type = 'application/x-www-form-urlencoded' 模拟(使用 Chrome Rest Console 插件)相同的 POST 那么请求参数就被正确填写了。
如何启用 Content-Type = 'text' 的 POST 数据?
【问题讨论】:
-
这样做有什么理由吗?告诉他们向您发送正式的发帖请求。
-
很遗憾不能更改 POST 请求
标签: grails post controller content-type