lua - how to authenticate to a HTTPS server?

905 views Asked by At

How would one authenticate and hit a HTTPS URL from LUA? In particular to get the resultant response back from the server?

Background: Basically want to use the https://docs.pushbullet.com/http/ API. I can see how to use it in curl, however I want to use it within LUA, and really want to get the responses back to see them.

1

There are 1 answers

1
catwell On BEST ANSWER

You can use LuaSec and LuaSocket. Require ssl.https and use it like socket.http.