get - POST data in Lua -
i'm learning lua @ moment. need able access post , data. i'm trying find out how equivalent of php $_post , $_get in lua.
this depends on web server running in, , intermediary libraries using.
in apache 2.3, using included mod_lua, be
function my_handler(r) -- uri params local simple, full = r:parseargs() -- post body local simple, full = r:parsebody() end
where simple table of key -> value (what want of time) , full key -> [value1, value2, ...] cases of duplicately named params.
fuller examples available @ http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/lua/test/htdocs/test.lua?revision=728494&view=markup
Comments
Post a Comment