Welcome! Log In Create A New Profile

Advanced

Re: Get request_body in set_by_lua directive

agentzh
March 15, 2012 10:32PM
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
Subject Author Posted

Get request_body in set_by_lua directive

rishabh March 15, 2012 06:59AM

Re: Get request_body in set_by_lua directive

agentzh March 15, 2012 10:32PM

Re: Get request_body in set_by_lua directive

rishabh March 19, 2012 06:02AM

Re: Get request_body in set_by_lua directive

agentzh March 19, 2012 06:52AM

Re: Get request_body in set_by_lua directive

maanas April 28, 2013 03:13PM

Re: Get request_body in set_by_lua directive

agentzh April 28, 2013 11:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 63
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 254 on July 05, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready