Task

Access and print a URL's content (the located resource) to the console.

There is a separate task for HTTPS Requests.




 
local http = require("socket.http")
local url = require("socket.url")
local page = http.request('http://www.google.com/m/search?q=' .. url.escape("lua"))
print(page)
 