title: Node js url.parse—href not returning the full url
body: <p>I have the following very simple code snippet in node.js (running under <strong>Windows 7</strong>)</p>
  
  <pre><code>var path = url.parse(req.url, true).pathname;
  var href = url.parse(req.url, true).href;
  
  console.log("path " + path + "\r\n");
  console.log("href " + href + "\r\n");
  </code></pre>
  
  <p>I invoke the listener with localhost:8080/test </p>
  
  <p>I would expect to see:</p>
  
  <pre><code>path /test
  href /localhost:8080/test
  </code></pre>
  
  <p>Instead I get </p>
  
  <pre><code>path /test
  href /test
  </code></pre>
  
  <p>Why is href not the the full url?</p>