How to Lua Http request

Hi there,
Is there some way to make an HTTP request in a Lua script?
Or is there a better way to communicate with servers?

Do you mean

-- importing HTTP package
local http = require("http")

-- making HTTP call
response, err = http.request("GET", "")
if err then error(err) end

I already found this library.
But I can’t import http. Do I have to install normal lua to then install the package?

A more modern solution is to use lua-http:

It comes with a luasocket/luasec compatible interface.

twitch instagram twitter facebook