Difference between revisions of "Http.get"

From ComputerCraft Wiki
Jump to: navigation, search
(Created page with "{{lowercase}} {{Function |name=http.get |args=string url |api=http |returns=table a file handle o...")
 
Line 3: Line 3:
 
|name=http.get
 
|name=http.get
 
|args=[[string (type)|string]] url
 
|args=[[string (type)|string]] url
|api=http
+
|api=HTTP
 
|returns=[[table (type)|table]] a [[Fs.open#Files_opened_in_text_read_mode|file handle]] of a readonly file containing the data returned from the specified url.
 
|returns=[[table (type)|table]] a [[Fs.open#Files_opened_in_text_read_mode|file handle]] of a readonly file containing the data returned from the specified url.
 
|addon=ComputerCraft
 
|addon=ComputerCraft
 
|desc=Attempts to download the file and blocks until the "http_success" or "http_failure" events have been fired.
 
|desc=Attempts to download the file and blocks until the "http_success" or "http_failure" events have been fired.
 
}}
 
}}

Revision as of 14:55, 29 May 2012


Grid Redstone.png  Function http.get
Attempts to download the file and blocks until the "http_success" or "http_failure" events have been fired.
Syntax http.get(string url)
Returns table a file handle of a readonly file containing the data returned from the specified url.
Part of ComputerCraft
API HTTP