Skip to content

Instantly share code, notes, and snippets.

@Shell64
Created October 22, 2015 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shell64/3f7e8308c2499bc43e25 to your computer and use it in GitHub Desktop.
Save Shell64/3f7e8308c2499bc43e25 to your computer and use it in GitHub Desktop.
LuaWebserver2 simple POST example
function Application.POST(Information, Content)
if Information.Parameter == "MyFuncName" then
return '{"d": "1"}', 200
else
return '{"d": "0"}', 200
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment