cc http

参考链接:https://forums.computercraft.cc/index.php?topic=282.0

page, err = http.get("http://www.baidu.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
    print(data)
else --If not
    error(err)--This is what calls if there is a 404 for example
end
文章目录