http.lua updated. still needs proxy support.
code.lua updated. looks neat.
This commit is contained in:
parent
3febb302ad
commit
89f3ecf782
10 changed files with 445 additions and 358 deletions
|
@ -99,7 +99,7 @@ end
|
|||
function getbyhttp(url, file, size)
|
||||
local response = socket.http.request_cb(
|
||||
{url = url},
|
||||
{body_cb = receive2disk(file, size)}
|
||||
{body_cb = receive2disk(file, size)}
|
||||
)
|
||||
print()
|
||||
if response.code ~= 200 then print(response.status or response.error) end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue