http.get

From ComputerCraft Wiki
Revision as of 02:53, 3 July 2012 by Thesbros (Talk | contribs) (["on success"])

Jump to: navigation, search


Grid Redstone.png  Function http.get
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

Grid paper.png  Example
Gets the content of example.com (in HTML)
Code
local sExample = http.get("http://example.com/")
write(sExample)
Output The source of example.com