I always used GetAsync, because I thought at first 'get' oh so in php you do $_GET['Data'], but then I learned that it doesn't, it actually 'get' the data, and PostAsync, is suppose to post data.
But I did the same exactly thing with both...
local Data = HttpService:GetAsync('http://example.com') print(Data)
local Data = HttpService:PostAsync('http://example.com', "AJSONSTRING") print(Data)
On my server, I had
<?php echo 'a';
And both of them return 'a';
I also tried
local Data = HttpService:GetAsync('http://example.com?data=test') print(Data)
local Data = HttpService:PostAsync('http://example.com?data=test', "JSON") print(Data)
I could easy access 'data' on both of them by doing
$_GET['data']
but for some reason I can't access 'JSON' in the second argument of PostAsync
If someone could explain GetAsync and PostAsync and how to get data by doing $_POST['data'], that would help alot. Thanks in advance.

3 comments
Wow, thanks. That really help alot :)
19:55:30.004 - Unable to cast string to token I am getting this error, and can't seem to figure out why. Any suggestions?
I don't know the line erroring, and I don't know really know HttpService well so it's possible it's a subtlety I won't recognize