title: node - Invalid uri error in npm-request
body: <pre><code>var request = require('request');
  var options = {                
      url: 'https://connect1on1.com/api/web/index.php/v1/message/save-message',
      method:'POST',
      body:JSON.stringify({"id": data.user_id, "message": data.message}),
      headers: {
          'Content-Type': 'application/x-www-form-urlencoded',
          'Content-Length': data.length,
          'Access-Token': data.access_token
      }
  };
  
  function callback(error, response, body) {
      if (!error &amp;&amp; response.statusCode == 200) {
          console.log(error);
          //  var info = JSON.parse(response);
      }
  }
  request(options, callback);
  </code></pre>
  
  <p>I have add npm-request package for api call.</p>
  
  <p>I have set all params in options and pass second option as callback function.</p>
  
  <p>but i am getting this error.
  <strong>"Invalid Uri"</strong></p>
  
  <p>My question is how can i call secure https url in npm-request</p>