Answered by
6 years ago Edited 6 years ago
Assuming Allow HTTP Requests is set to "On", or set to "True" in your script...
2 | hs = game:GetService( "HttpService" ) |
When you update your status on Roblox, you’re sending something called a post request. A post request holds information, along with the tag **post’confirm. This is what HttpService:PostAsync does. When you call HttpService:PostAsync, your script will yield until either a) the request is completed or b) the request times out.
2 | hs = game:GetService( "HttpService" ) |
3 | myContent = "This_is_a_pointless string that means nothing, but could have useful content." |
HttpService cannot access Roblox domains. You can only make 500 requests per minute. This is to stop players from clogging up the Roblox servers. You must have “http://” or “https://” at the beginning of your URL.
HttpService can also send strings (tables) to websites...
From Dev - -
04 | myTable [ "swordID" ] = 1000398 |
07 | hs = game:GetService( "HttpService" ) |
09 | myTableJSON = hs:JSONEncode(myTable) |
Retrieving the same table after it has been posted, and assuming that the previously mentioned URL Contained NOTHING ELSE BUT the JSON table.
2 | hs = game:GetService( "HttpService" ) |
6 | myTable = hs:JSONDecode(myTableJSON) |
Link to JSON wiki...
http://robloxdev.com/articles/JSON-Storage-Format