diff --git a/client.lua b/client.lua index 973891c..2908442 100644 --- a/client.lua +++ b/client.lua @@ -5,7 +5,7 @@ local multi, thread = require("multi"):init() -- local http = require("lnet.http") -- local http_ = require("socket.http") -local http = require("lnet.http") +local https = require("lnet.https") -- multi:newThread("Timer",function() -- while true do @@ -13,8 +13,10 @@ local http = require("lnet.http") -- print("...") -- end -- end) ---download("http://212.183.159.230/5MB.zip","test1.bin") ---download("http://212.183.159.230/50MB.zip","test2.bin").OnError(print) +-- download("http://212.183.159.230/5MB.zip","test1.bin") +-- download("http://212.183.159.230/50MB.zip","test2.bin").OnError(print) + +print(https.request("https://erowall.com/wallpapers/large/32757.jpg")) -- local client = net.newCastedClient("Test")--net:newTCPClient("localhost",12345) diff --git a/test.jpg b/test.jpg deleted file mode 100644 index 79acd62..0000000 Binary files a/test.jpg and /dev/null differ