title: How to authenticate a request with htpasswd in Node.js
body: <p>I am trying to fetch a rss feed from our staging site and at present it has htpasswd security on it.</p>
  
  <p>I have tied using the format: </p>
  
  <pre><code>http://username:password@url.com
  </code></pre>
  
  <p>This works on the browser but when I try to do this with nodejs it fails.</p>
  
  <p>Could you tell me what is the right way to do this with node.js.</p>