Difference between revisions of "Http.get"
From ComputerCraft Wiki
(["on success"]) |
|||
| Line 4: | Line 4: | ||
|args=[[string]] url | |args=[[string]] url | ||
|api=HTTP | |api=HTTP | ||
| − | |returns=The response of the server or nil on failure. | + | |returns=The response of the server on success or nil on failure. |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|examples= | |examples= | ||
Revision as of 02:53, 3 July 2012
| No description provided. | |
| Syntax | http.get(string url) |
| Returns | The response of the server on success or nil on failure. |
| Part of | ComputerCraft |
| API | HTTP |
Examples
Basic usage
| Gets the content of example.com (in HTML) | |
| Code |
local sExample = http.get("http://example.com/")
|
| Output | The source of example.com |