Get request_body in set_by_lua directive

agentzh agentzh at
Fri Mar 16 02:30:15 UTC 2012

On Thu, Mar 15, 2012 at 6:59 PM, rishabh <nginx-forum at> 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.


More information about the nginx mailing list