我的需求是resty.upload 模块读取数据前发起一个 ngxlocationcapture,怎么处理这种需求,设置ngx.req.read_body()
,用upload 模块读不到数据,有些东西理解不透彻,见谅
Hello!
On Wed, Oct 1, 2014 at 6:52 AM, sunjun wrote:
> 这是请求阿里云的oss ,普通的页面是可读取的,get 与post 的区别是什么,body 的内容会带入子请求吗?
>
https://github.com/openresty/lua-nginx-module#ngxlocationcapture
"You should always read the request body (by either calling
ngx.req.read_body or configuringlua_need_request_body on) before
initiating a subrequest."
"By default, this (always_forward_body) option isfalse and when the
body option is not specified, the request body of the current
(parent)
request is only forwarded when the subrequest takes the PUT or POST
request method."
Regards,
-agentzh
--
--
邮件来自列表“openresty”,专用于技术讨论!
订阅: 请发空白邮件到 openresty+subscribe@googlegroups.com
发言: 请发邮件到 openresty@googlegroups.com
退订: 请发邮件至 openresty+unsubscribe@googlegroups.com
归档: http://groups.google.com/group/openresty
官网: http://openresty.org/
仓库: https://github.com/agentzh/ngx_openresty
教程:
http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html