Difference between revisions of "Http.get"
From ComputerCraft Wiki
(Add description) |
|||
Line 6: | Line 6: | ||
|returns=The response of the server on success or nil on failure. | |returns=The response of the server on success or nil on failure. | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |||
|desc=The response of the server on success or nil on failure. | |desc=The response of the server on success or nil on failure. | ||
+ | |examples= | ||
{{Example | {{Example | ||
|desc=Gets the content of example.com (in HTML) | |desc=Gets the content of example.com (in HTML) |
Revision as of 02:55, 3 July 2012
Function http.get | |
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/") |
Output | The source of example.com |