Difference between revisions of "Http.request"
From ComputerCraft Wiki
(Changed the example, because otherwise it'll stop on any event, which will cause a keypress or redstone update to stop it.) |
m (Moved to CAT:LuaCoreFunctions) |
||
| Line 24: | Line 24: | ||
}} | }} | ||
}} | }} | ||
| + | |||
| + | [[Category:Lua_Core_Functions]] | ||
Revision as of 18:49, 28 November 2012
| Sends a HTTP request to the website. Returns event "http_success" on success. | |
| Syntax | http.request() |
| Returns | event "http_success" on success. |
| Part of | ComputerCraft |
| API | http |
Examples
| Prints the code of a loading bar program if successful. | |
| Code |
http.request("http://pastebin.com/raw.php?i=Tk19jv43")
|