Categories > Coding > Lua >

How do i make a post request from roblox?

Posts: 19

Threads: 11

Joined: Aug, 2021

Reputation: 0

Posted

Update: resolved

 

Im going to get a lot of hate for this one but im trying to post to my api and get data about someones key but when i send the request the server doesnt receive the request.

 

Code:

local http = game:GetService("HttpService")
local url= 'http://url/api/checkkey'

local function checkKey(key)
    local response = http:PostAsync(url..'?key='..key)
    return http:JSONDecode(response)
end

print("Creating request to: "..url)
print(checkKey("1234567890"))
  • 1

I'm an idiot don't listen to anything I say

----------------------------------------------------

I make GTA Menus but failed at making lego cheats

Posts: 1227

Threads: 68

Joined: May, 2022

Reputation: 17

Replied

thats cool and all but all i have to do is run this before the script

hookfunction(game:GetService("HttpService").PostAsync, function(...)
     return true
end)

or something similar to that idk i dont do a lot of hooking but i do know that you need a lot more checks like hwid checks

  • 0

Did I mention I use arch btw?

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )