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 = [===[
First name:

Last name:

MaleFemale
]===] 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") else connection:send("NOT IMPLEMENTED") end connection:send('') end