Perform a synchronous HTTP GET.
Susano.HttpGet(string) -> number, string
url (string): Absolute URL.
url
status (number): HTTP status code (e.g., 200).
status
body (string): Response body.
body
On error: nil, err (string).
nil, err
Blocking call. Runs on the calling thread.
Follows redirects. Accepts gzip/deflate.
TLS verification enabled.
No custom headers or timeout in this variant.
Body may be binary; use #body for length.
#body
Last updated 2 months ago
local st, body = Susano.HttpGet("https://httpbin.org/get") if not st then print("GET failed:", body) else print("GET", st, #body) end