Getting data from the real internet

Started by SamH, Jan 21, 2021, 09:27 AM

Previous topic - Next topic

SamH

Hello as you may know i'm the dev of the CC Browser, Anyway this is how you can get data from the real internet
page, err = http.get("http://example.com/")--Send a get request to the url
if page then --If there is a page
    data = page.readAll()--This returns a string of the content
else --If not
    error(err)--This is what calls if there is a 404 for example
end