http
Functions for making HTTP requests, allowing you to retrieve website content and send POST requests with payloads.
Name
Type
Description
Name
Type
Description
Example
http.get("https://cataas.com/cat", function(body, stats)
if stats == 200 then -- 200 = success, 500 = error
local filename = "random_cat.jfif"
file.write(filename, body, "binary")
end
end)Last updated