Difference between revisions of "Http.get"

From ComputerCraft Wiki
Jump to: navigation, search
(anh con may cung voi coi nha)
Line 1: Line 1:
Hello my friend heres my new gig easy as it looks Ill send u a total of 5350++ backlinks to your website in 2 tiers. This gig its for 1 website and up to 5 keywords. First tier to your main website 350 page rank 1-5 and the the second tier of 5000 profile backlinks pointing to your first tier.Ill send u a report in a txt file in less than 48 hours.Any question just send me a private message
+
{{lowercase}}
 +
{{Function
 +
|name=http.get
 +
|args=[[string]] url
 +
|api=HTTP
 +
|returns=The response of the server or nil on failure.
 +
|addon=ComputerCraft
 +
|examples=
 +
===Basic usage===
 +
{{Example
 +
|desc=Gets the content of example.com (in HTML)
 +
|code=local sExample = http.get("http://example.com/")<br />write(sExample)
 +
|output=The source of example.com
 +
}}
 +
}}

Revision as of 10:45, 24 June 2012


Grid Redstone.png  Function http.get
No description provided.
Syntax http.get(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