title: Node.JS requests with rejectUnauthorized as false
body: <p>I'm trying to use the <code>request</code> module for Node.js to formulate a HTTPS GET request. The corresponding code using the <code>https</code> module is as follows:</p>
  
  <pre><code>var https = require('https');
  
  var options = {
      hostname: url,
      path: path,
      rejectUnauthorized: false,
      secureProtocol: 'TLSv1_method',
      port: 8443,
      method: 'POST'
    };
  
  https.get(options, function(response) {
      var body = ''; 
      response.on('data', function(chunk) {
          body += chunk.toString();
      });
      response.on('end', function() {
          var content = JSON.parse(body);
          console.log(content);
      });
  });
  </code></pre>
  
  <p>I attempted to rewrite this code using the <code>request</code> module as follows:</p>
  
  <pre><code>var request = require('request');
  
  var options = {
      url: url,
      strictSSL: false
  }
  
  request.get(options, function(error, response, body) {
      if (error) {
          console.log(error);
      } else {
          console.log(body);
      }
  });
  </code></pre>
  
  <p>However, this gives me an error <code>{ [Error: socket hang up] code: 'ECONNRESET', sslError: undefined }</code></p>
  
  <p>What would be the <code>request</code> equivalent of <code>rejectUnauthorized: false</code>?</p>