开发者

How Create Post Request with redirect like a Form Submit

How can in controller redirect with post same data like this do form

<form action="http://开发者_高级运维example.com/" method="POST">
  <input type="hidden" name="q" value="a">
</form>

I can't use redirect_to, because there is no support post data.


You can not; the HTTP spec does not support it. You might be able to store the POST data in a session, though, and retrieve it later.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜