Skip to content

HTTP Functions

Functions for making external web requests from within the executor.


httpget

Performs an HTTP GET request.

Lua
local response = httpget(url)

Parameters: - url (string): URL to request

Returns: Response body as string

Example:

Lua
1
2
3
4
5
6
7
-- Simple GET request
local response = httpget("https://api.example.com/data")
print(response)

-- Using with JSON
local response = httpget("https://jsonplaceholder.typicode.com/todos/1")
print(response)