• Got it, you need to specify an undocumented parameter in options called protocol, and set it to https: (note the trailing colon).

    var options = {
        host: 'google.com',
        protocol: 'https:',
        port: 443,
        path: '/',
        method: 'GET',
      };
    
About

Avatar for dave_irvine @dave_irvine started