of     1   

x_Murphy
#160158802Tuesday, April 14, 2015 5:16 PM GMT

Okay, I am incredibly bad at HttpService and am still attempting to grasp the concept of it. If someone is able to help me out with this code I have a feeling it will suddenly become clearer for me. So say there was a script on a hosting server that kicked people, this was what the url was: www.example.com/kick.php?admin=[name]&kick=[player] and what it done is when you click a button it checked if you were admin by using the [name] thing and would kick the [player] if you are. I do not need to know about the PHP scripting as that can be easily done, but I am just wondering how do I post the info to it? like: www.example.com/kick.php?admin=game.Players.LocalPlayer&kick=game.Players.Noob Thanks if you can help.
NovusTheory
#160158970Tuesday, April 14, 2015 5:20 PM GMT

PostAsync()
x_Murphy
#160158972Tuesday, April 14, 2015 5:20 PM GMT

b1
x_Murphy
#160159024Tuesday, April 14, 2015 5:22 PM GMT

I know it's PostAsync() but how exactly would I lay it out? I used like game.HttpService:PostAsync("http://www.example.com/kick.php?admin=" --then what here?
NovusTheory
#160159078Tuesday, April 14, 2015 5:23 PM GMT

"admin=" .. game.Players.ADMIN .. "&player=" .. game.Players.PLAYER
x_Murphy
#160159227Tuesday, April 14, 2015 5:28 PM GMT

would it be game.HttpService:PostAsync("http://www.example.com/kick.php","admin="..game.Players.ADMIN.."&player="..game.Players.PLAYER); for the full layout? if so that is what I am currently doing and I have tried other ways, but I'm getting a 504 error and I know for a fact the site I am using with the api is working fine and is not directly on roblox.com e.e
x_Murphy
#160159378Tuesday, April 14, 2015 5:32 PM GMT

^ bump :3
x_Murphy
#160159416Tuesday, April 14, 2015 5:33 PM GMT

503 error not 504 sorry :)
x_Murphy
#160159547Tuesday, April 14, 2015 5:37 PM GMT

bump -sigh-
TooKawaiiForSenpai
#160159827Tuesday, April 14, 2015 5:45 PM GMT

http://en.wikipedia.org/wiki/List_of_HTTP_status_codes#5xx_Server_Error 503 means it's a server error. Probably something in your PHP code. Try visiting it in a web browser and you'll see
x_Murphy
#160159938Tuesday, April 14, 2015 5:49 PM GMT

already tried it works perfectly fine..

    of     1