Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

PostAsync is not sending?

Asked by 6 years ago

Im trying to send data to my website to log the players name and there age.

i know there is nothing wrong with my site because i use a program called fiddler to send data and test it.

how i send data with fiddler and url http://example.com/?name=lel&age=6666666 it says sent but when i check my site does not show any changes or ad-dons i have no clue why it wont send. I have tried multiple things to debug this. i looked everywhere and could not find any solutions

some help would be greatly appreciated.

hs = game:GetService("HttpService")
myContent = ""
succes = pcall(function()
    hs:PostAsync("http://example.com/?name=ScripterOmega&age=999999999",true)
end)

if succes then print('Data Sent') end

2 answers

Log in to vote
0
Answered by
commag 228 Moderation Voter
6 years ago

You didn't specify the data type. Correct me if I'm wrong, I don't know much about HTTPService but I do believe it uses an ENum data type system.

0
ill try that and see if it works thx for the tip commag TheScriptKing 102 — 6y
0
http://wiki.roblox.com/index.php?title=API:Class/HttpService/PostAsync — I advise you use all the arguments or it could cause it to break commag 228 — 6y
0
If you are talking about the second argument, no. It uses a number system. hiimgoodpack 2009 — 6y
Ad
Log in to vote
0
Answered by 6 years ago

Change true to 2

Answer this question