Difference between revisions of "Http.get"
From ComputerCraft Wiki
(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= | + | |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
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 |