If I do a “Build and launch” with this code on an new project:
function init(self)
http.request("http://www.google.com", "GET", function(self, id, response)
label.set_text("http_test#label", "status: " .. response.status)
end)
end
I get the status code 302. But if I then do a “Build html and launch” I get status code 0.
I’ve tried on different computers but I still get the same result. I have a feeling I’ve missed something incredibly simple somewhere, like a setting for html builds or something.
Do anyone have an idea why “http.request(…)” doesn’t work for me in html builds but works in normal builds?