Lua r:requestbody() removes HTTP request body

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi,

I trying to read every HTTP request message body (Apache httpd 2.4.5/Debian 9.5) where content type is equal to 'text/xml'. For this purpose I use a Lua handler script during the request translation phase using the directive 'LuaHookTranslateName' (https://publib.boulder.ibm.com/httpserv/manual24/mod/mod_lua.html#luahooktranslatename).

This Lua handler script uses the function 'r:requestbody()' defined in the reference manual section 'Built in function' (https://publib.boulder.ibm.com/httpserv/manual24/mod/mod_lua.html#functions). This method reads and returns the body of the HTTP request but it also REMOVES the body of the request.

Is this bug reported?

Does exist any other request body reading function alternative?

I couldn't find any alternative in the 'lua_module' reference documentation.

Thanks,

Bruno.

--
bruno.mendoza@xxxxxxxxxx
live:.cid.fcefe3e243ddd719
010000100110100101110100011000100110111101111000


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux