From 5fe2dfcf9d043238f74d67b435b806fc5a860815 Mon Sep 17 00:00:00 2001 From: Marcos Kirsch Date: Sun, 22 Feb 2015 16:05:35 -0600 Subject: [PATCH] Add script that shows how arguments are handled by server --- http/args.lua | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 http/args.lua diff --git a/http/args.lua b/http/args.lua new file mode 100644 index 0000000..c2fd669 --- /dev/null +++ b/http/args.lua @@ -0,0 +1,27 @@ +return function (connection, args) + connection:send("HTTP/1.0 200 OK\r\nContent-Type: text/html\r\Cache-Control: private, no-store\r\n\r\n") + connection:send('Arguments') + connection:send('') + connection:send('

Arguments

') + +local form = [===[ +
+ First name:

+ Last name:

+ MaleFemale
+ +
+]===] + + connection:send(form) + + connection:send('

Received the following values:

') + connection:send("\n") + connection:send('') +end