return function (connection, req, args)
connection:send("HTTP/1.0 200 OK\r\nContent-Type: text/html\r\nCache-Control: private, no-store\r\n\r\n")
connection:send('
Arguments')
connection:send('')
connection:send('Arguments
')
local form = [===[
]===]
if req.method == "GET" then
connection:send(form)
elseif req.method == "POST" then
local rd = req.getRequestData()
-- connection:send(cjson.encode(rd))
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("NOT IMPLEMENTED")
end
connection:send('')
end