http.get
From ComputerCraft Wiki
Revision as of 00:03, 31 July 2012 by 50.39.186.71 (Talk)
Function http.get | |
Returns a table similar to that returned by an fs.open() call, used to handle 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 |