HTTP request tester
Key RequiredUniversal

HTTP request tester

Universal Scriptarbsturkarbsturk 2.1K views 19 executesUpdated Apr 24, 2025
5.0/ 5(1 votes)
10100% Positive
Lua Script•28 lines (823 chars)
local function getRequestFunction()
    return (http_request or request or (syn and syn.request) or (fluxus and fluxus.request))
end

local requestFunc = getRequestFunction()

if requestFunc then
    print("Trying HTTP request...")

    local success, result = pcall(function()
        return requestFunc({
            Url = "http://httpbin.org/get", -- Safe public HTTP test endpoint
            Method = "GET"
        })
    end)

    if success and result and result.StatusCode == 200 then
        print("HTTP Request successful! Executor supports HTTP.")
    else
        warn("HTTP Request failed or response not OK.")
        if result then
            warn("StatusCode:", result.StatusCode)
            warn("Body:", result.Body)
        end
    end
else
    warn("Your executor does not support HTTP requests.")
end

Features & Information

Tests you're executor if it supports HTTP request.

Community Comments (1)

smithacaroline098smithacaroline098Apr 24, 2025

W

More Scripts for Universal Scripts