Hello!
2013/3/17 wgm.china:
> 我希望redirect
> 跳转后,把post的数据也转到后端,但测试发现,原来的post,经过redirect后,就变成了get,Post的数据也没有重新传到后端?不知道是为什么?
>
这里的行为取决于你的 HTTP 客户端,与 ngx_lua 无关(所以ngx_lua 也无法进行控制)。对于 301/302,把 POST
自动变成 GET 是可以接受的行为:
http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-17#section-7.3
http://stackoverflow.com/questions/8138137/http-post-request-receives-a-302-should-the-redirect-request-be-a-get
Best regards,
-agentzh
--
--
邮件自: 列表“openresty”,专用于技术讨论!
发言: 请发邮件到 openresty@googlegroups.com
退订: 请发邮件至 openresty+unsubscribe@googlegroups.com
详情: http://groups.google.com/group/openresty
官网: http://openresty.org/
仓库: https://github.com/agentzh/ngx_openresty
建议: 提问的智慧 http://wiki.woodpecker.org.cn/moin/AskForHelp
教程: http://agentzh.org/misc/nginx/agentzh-nginx-tutorials-zhcn.html
---
您收到此邮件是因为您订阅了 Google 网上论坛的“openresty”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 openresty+unsubscribe@googlegroups.com。
要查看更多选项,请访问 https://groups.google.com/groups/opt_out。