I am trying to download a webpage using Lua 5.1 and Luasec (not sure which version)
I am getting an error stating "sslv3 alert handshake failure"
I am not an expert on the https protocol so not sure what I need to do to fix this problem. I am assuming i need to tell it to use TLS v1.2 or later to make it work. Not proved that this is the problem though. Here is gist of my latest code attempt that
still gives me the same error.
ssl.newcontext({mode="client", protocol="tlsv1_2"})
local url = "" href="https://www.attheraces.com/racecards" target="_blank">https://www.attheraces.com/racecards]]
webText, code, headers, status = https.request({url="" protocol="tlsv1_2"})
print(code, headers, status)
I have tried protocol = "sslv23" and "sslv3" neither fixed the problem
Any help on this issue would be most appreciated, thanks.