1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00
esp8266/www/lua/tcgi1.lua
cameronrich ab7cbe8310 added lua test cases
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@128 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
2007-09-17 21:48:39 +00:00

10 lines
288 B
Lua

io.stdout:write"Content-type: text/html\n\n"
for i,v in pairs{"QUERY_STRING", } do
io.stdout:write (string.format ("%s = %s", v, os.getenv(v) or ' '))
end
io.stdout:write "<br>\n"
local post_data = io.stdin:read"*a"
io.stdout:write (string.format ("post_data = {%s}", post_data))