title: In node.js, how do I get the Content-Length header in response to http.get()?
body: <p>I have the following script and it seems as though node is not including the Content-Length header in the response object. I need to know the length before consuming the data and since the data could be quite large, I'd rather not buffer it.</p>
  
  <pre><code>http.get('http://www.google.com', function(res){    
  
      console.log(res.headers['content-length']); // DOESN'T EXIST
  });
  </code></pre>
  
  <p>I've navigated all over the object tree and don't see anything. All other headers are in the 'headers' field.</p>
  
  <p>Any ideas?</p>