title: Node https forward proxy client-server
body: <p>I'm trying to use Node's <a href="https://github.com/mikeal/request" rel="nofollow">request</a> module to make a request to https url. Code snippet below.</p>
  
  <pre><code>var request = require('request')
  ,r = request.defaults(
        {'proxy':'https://localhost:8443',
          strictSSL: false, 
          rejectUnauthorized: false,
        });
  
  function sendHttpsReq(){
  r.get('https://my.https.url/api/model', function (error, response, body) {
      if (!error &amp;&amp; response.statusCode == 200) {
            console.log(body);
         }
      });
  }
  </code></pre>
  
  <p>Using the above code, If i use a http proxy and make a http request, the proxy server gets the request. But for a https url through a https proxy, the proxy server never gets the request. I'm using a simple node-http-proxy based proxy server running on my local server. </p>