Welcome! Log In Create A New Profile

Advanced

Get request_body in set_by_lua directive

March 15, 2012 06:59AM
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 ?

my conf structure is like

http{
server {
...

set_by_lua_file $myContent myFile.lua;

location @abcd {
...
}

}
}
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: 81
Record Number of Users: 7 on October 18, 2016
Record Number of Guests: 386 on August 02, 2016
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready