ComputerCraft Forums

ComputerCraft => Tutorials => Topic started by: SamH on Jan 21, 2021, 09:27 AM

Title: Getting data from the real internet
Post by: SamH on Jan 21, 2021, 09:27 AM
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