Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect 无法post值 #26

Closed
Leadrive opened this issue May 7, 2018 · 1 comment
Closed

Redirect 无法post值 #26

Leadrive opened this issue May 7, 2018 · 1 comment

Comments

@Leadrive
Copy link
Contributor

Leadrive commented May 7, 2018

《html》
《body onload="document.forms[0].submit()"》
《form method="post" action="https://abc.xxx.com/test"》
	《input type="hidden" name="serviceName" value="PERSONAL_REGISTER"》《/input》
《/form》
《/body》
《/html》

比如现在用ctx.Redirect(....)
重定向到这个页面
但提交后,页面并没有把这些值post过去。

@andeya
Copy link
Owner

andeya commented May 30, 2018

你应该是用的302跳转吧?一般浏览器默认行为是跳转时改为GET方法。http1.2增加了307,支持post,你可以做一下了解。

@andeya andeya closed this as completed Oct 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants