05.08.2019, 11:15
You need to use ssl.https instead of socket.http:
Code:
https = require('ssl.https')
res, err = https.request('https://...')