Http.get

{{API doc function {{API doc example | name = Downloading a page | description = Requests a single page and prints the first 100 characters. | code = -- Make a http request local url = "http://example.com" local request, err = http.get("http://example.com/") if not request then error(err, 0) end -- Print the contents print(request.readAll:sub(1, 100)) request.close -- Don't forget to close! }} }}
 * name = http.get
 * description = Attempt to fetch a webpage, using the same arguments as http.request. This will return the response table or false, an error message and (optionally) a handle with the failing response’s content.
 * args = {{type|string}} url[, {{type|table}} headers[, {{type|boolean}} binary]]
 * returns = {{type|table} response | {{type|boolean}} false, {{type|string}} error[, {{type|table}} response]
 * part_of = CC:Tweaked {{API doc source link|https://github.com/SquidDev-CC/CC-Tweaked/blob/0685be6bfa9335dd5f5e415bb7c01f0929efa92e/src/main/resources/assets/computercraft/lua/bios.lua#L708}}
 * api = http
 * see_also = http.post, http.request
 * examples =