http.get
From ComputerCraft Wiki
| Sends a HTTP GET request to a website, synchronously. Returns when the request completes, successfully or not. | |
| Syntax | http.get(string url [, table headers]) |
| Returns | table a handle on success, or nil on failure |
| Part of | ComputerCraft |
| API | HTTP |
Examples
| Gets the content of example.com (in HTML) | |
| Code |
local sExample = http.get("http://example.com/") --Get contents of page
|
| Output | The source of http://example.com/ |