Sup, I've added support for HTTP requests to the server.
Example of a GET request:
Code (Java):
fetch
(
"GET",
"https://google.com", function
(body, response_code
)
print
(body
)
-- prints html file
print
(response_code
)
--
200
(OK
)
end
)
Example of a POST request:
Code (Java):
fetch
(
"POST",
"https://google.com", function
(body, response_code
)
print
(body
)
-- prints html file
print
(response_code
)
--
200
(OK
)
end,
{applejuice
=
300
}
)
-- send post request to google.
com with json data applejuice
=
300