Closed the0ne closed 4 years ago
can connect to https only / easy to use / chunked downloading returns response code + content (content only if response code is 200)
lua example:
local code, content = net.http.get("www.foo.bar", "/foo/index.html", "text/html") if code == 200 then content = table.concat(content) end
also fixed memory leaks in net_ota()
updated file formatting in a separate commit
can connect to https only / easy to use / chunked downloading returns response code + content (content only if response code is 200)
lua example:
also fixed memory leaks in net_ota()
updated file formatting in a separate commit