On Thu, Mar 15, 2012 at 6:59 PM, rishabh <nginx-forum@nginx.us> wrote:
> I wont to parse the request_body in a lua script file but am unable to
> access the request_body in set_by_lua_file directive. Is there any way
> to access the headers/cookies/get/post ?
>
The request body API will not work at all in the context of set_by_lua
and set_by_lua_file directives. You should use rewrite_by_lua,
rewrite_by_lua_file instead.
Regards,
-agentzh
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx