Difference between revisions of "Http.get"
From ComputerCraft Wiki
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= | + | |desc=Returns the response of the server on success or nil on failure. |
|examples= | |examples= | ||
{{Example | {{Example |
Revision as of 02:56, 3 July 2012
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/") |
Output | The source of example.com |