Hi.
I would like to run a POST or GET (HTTP protocol) in a script lua, and get back data from an ouside website.
something like:
content = HTTPGet("http://www.mysite.com/script.php?x=0&y=1")
Is it possible in lua ?
Thank's.
Example:
http = require "socket.http"
result, statuscode, content = http.request("http://www.mysite.com/script.php?x=0&y=1")
More info: http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/http.html
Greats !
A lot of thanks...