Skip to main content

Get

Sends a GET request to the supplied URL.

Parameters

Parameter NameParameter TypeParameter Description
urlstringThe URL to send the GET request to

The following example sends a GET request to https://example.com and prints the page's HTML

JavaScript

let http = new Http()
let result = http.Get("https://example.com")
print(result)

Lua

local http = Http()
local result = http.Get("https://example.com")
print(result)