http.get
From ComputerCraft Wiki
Revision as of 17:47, 30 July 2012 by Thesbros (Talk | contribs) (Fix example code and add comments)
Function http.get | |
Returns the response of the server on success or nil on failure. | |
Syntax | http.get(string url) |
Returns | The response of the server on success or nil on failure. |
Part of | ComputerCraft |
API | HTTP |
Examples
Example | |
Gets the content of example.com (in HTML) | |
Code |
local sExample = http.get("http://example.com/") --Get contents of page |
Output | The source of example.com |