title: got "Invalid protocol" with Proxy in NodeJS
body: <p>I'm trying to connect via proxy in nodeJs, but I don't have any result or error.
  I'm using <code>mikeal/request</code>.</p>
  
  <p>I've tested proxy in the command line and it works properly:</p>
  
  <pre><code>$ http_proxy=localhost:9060 wget http://wtfismyip.com/json
  $ cat json 
  </code></pre>
  
  <p>returns </p>
  
  <pre><code>{
     "YourFuckingIPAddress" : "62.236.108.73",
     "YourFuckingLocation" : "Finland",
     "YourFuckingHostname" : "effi.org",
     "YourFuckingISP" : "TDC Oy Finland"
  }
  </code></pre>
  
  <p>As expected. But my request in nodeJs:</p>
  
  <pre><code>router.route('/proxy-ip')
      .get(function (req, res) {
  
          var request_options = {
              url: 'http://wtfismyip.com/json',
              proxy: {
                  host: "http://localhost",
                  port: 9060
              }
          };
  
          console.log({request:request_options});
  
          request.get(request_options,
              function (error, response, json) {
                  if (!error &amp;&amp; response.statusCode == 200) {
                      res.send(json);
                  } else {
                      console.log({'request': request, 'response': response, 'error': error, 'json': json});
                      res.send({'response': response, 'error': error, 'json': json});
                  }
              }
          );
  
      });
  </code></pre>
  
  <p>log invalid protocol error:</p>
  
  <pre><code>  error: [Error: Invalid protocol: http]
  </code></pre>
  
  <p>Does anyone know how to fix it? Do anyone have working example with proxy in mikeal/request &amp; nodejs?</p>