title: How to use XHR API in Node.js?
body: <p>This is a follow-up to my previous <a href="https://stackoverflow.com/questions/34512499/html-rendering-on-server-with-node-js">question</a></p>
  
  <p>Suppose I've some <code>javascript</code> code, which runs fine on client (in a browser). This code makes a lot of <code>XHR</code> calls using the browser API.</p>
  
  <p>Now I would like to run this code in <code>node.js</code>. Does <code>node.js</code> provide the <code>XHR</code> API as in browser ?</p>