http.request

From ComputerCraft Wiki
Revision as of 10:43, 24 June 2012 by Wukl (Talk | contribs) (Created page with "{{lowercase}} {{Function |name=http.request |args=string url |api=HTTP |returns=The response of the server or nil on failure. |addon=ComputerCraft |examples= ===Basic usag...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Grid Redstone.png  Function http.request
No description provided.
Syntax http.request(string url)
Returns The response of the server 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