return function (connection, req, args)
dofile("httpserver-header.lc")(connection, 200, 'html')
connection:send([===[
Arguments by POSTArguments by POST
]===])
if req.method == "GET" then
connection:send([===[
]===])
elseif req.method == "POST" then
local rd = req.getRequestData()
connection:send('Received the following values:
')
connection:send("\n")
for name, value in pairs(rd) do
connection:send('- ' .. name .. ': ' .. tostring(value) .. "
\n")
end
connection:send("
\n")
else
connection:send("ERROR WTF req.method is ", req.method)
end
connection:send('')
end