Universal Script πŸ“Œ
2.1k Views
37 Executions

HTTP request tester

Universal Script πŸ“Œ
arbsturk
arbsturkPublished 5
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Tests you're executor if it supports HTTP request.

View Raw
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


Comments

1
Log in to join the conversation. Login
smithacaroline098's profile picture
smithacaroline0982 years ago

W

1

More universal scripts

See all
Script hub
169
989
Bumped 1 hour ago

Script hub

Lunyx Hub

Script hub
120.8k
221.2k
Bumped 2 hours ago
Key System
Script hub
10.6k
201.0k
Bumped 2 hours ago

Script hub

KeylessVerified script badgeIRIDIUM HUB | #1

Script hub
33.3k
299.8k
Bumped 5 hours ago
Script hub
23.7k
5.3k
Bumped 5 hours ago
Key System
Paid
High QualityΒ Offering
Universal Script πŸ“Œ
333
1.2k
Bumped 5 hours ago