Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

I don't get HTTPService at all. Any help?

I understand that people don't like making scripts for others, so instead I'm asking for an understanding of the subject. I don't understand HTTPService even after reading the wiki page. I feel I could really do more with my scripting if only someone would help me grasp the concept. Thanks in advance.

--Commag

1 answer

✓ Accepted answer

HTTPService has two main functions - GetAsync and PostAsync

GetAsync retrieves the HTML from the url provided:

print(game:GetService('HttpService'):GetAsync('http://example.org'))

In the output you should see lots of text. This can be used for a lot of things.

PostAsync posts to the url provided with a value and some other optional parameters.

There are different APIs for different websites that do specific things, such as the Discord, Trello or Pastebin web APIs.

This discussion is preserved as it was. New answers, comments, and votes are closed.