I've been trying now for a couple of hours to make a GET request to a simple page and then get the body as a result, but Luvit makes this incredibly complicated.
function httpGET()
request = networking.get("https://google.com")
local function callback(param)
print(param)
end
request:done(callback)
end
After many iterations, this is as close as I have gotten (using this library https://github.com/cyrilis/luvit-request)
If someone with more experience would write a simple function to get the body of a page, I would really appreciate it. Thanks!