jbe@91: --[[-- jbe@91: params = jbe@221: request.get_param_strings() jbe@91: jbe@99: This function returns a table with all raw GET/POST parameters as strings or list of strings (except internal parameters like "_webmcp_path" or "_webmcp_id"). Modifications of the returned table have no side effects. jbe@91: jbe@91: --]]-- jbe@91: jbe@221: local function merge_params(tbl, params_list) jbe@221: for key, values in pairs(tbl) do jbe@221: if string.match(key, "^_webmcp_") then jbe@221: -- do nothing jbe@221: elseif string.match(key, "%[%]$") then jbe@221: tbl[key] = table.new(values) jbe@221: else jbe@221: tbl[key] = values[1] jbe@221: end jbe@221: end jbe@221: end jbe@221: jbe@95: function request.get_param_strings() jbe@99: local t = {} jbe@221: merge_params(t, request._http_request.get_params_list) jbe@221: merge_params(t, request._http_request.post_params_list) jbe@99: return t jbe@91: end