10.02.2020, 06:40
You are using outdated firmware where SSLv3 is used by default. It is disabled on most servers and you have to use TLSv1.2 or newer. Try using this function to make HTTPS GET request:
Code:
function request(url)
local resp = {}
local stat, code, hdrs = require('ssl.https').request({
method = 'GET',
url = url,
protocol = 'tlsv12',
sink = ltn12.sink.table(resp),
})
if stat then
stat = table.concat(resp)
end
return stat, code, hdrs
end