title: Getting HTTP headers with Node.js
body: <p>Is there a built in way to get the headers of a specific address via node.js?</p>
  
  <p>something like,</p>
  
  <pre><code>var headers = getUrlHeaders("http://stackoverflow.com");
  </code></pre>
  
  <p>would return</p>
  
  <pre><code>HTTP/1.1 200 OK.
  Cache-Control: public, max-age=60.
  Content-Type: text/html; charset=utf-8.
  Content-Encoding: gzip.
  Expires: Sat, 07 May 2011 17:32:38 GMT.
  Last-Modified: Sat, 07 May 2011 17:31:38 GMT.
  Vary: *.
  Date: Sat, 07 May 2011 17:31:37 GMT.
  Content-Length: 32516.
  </code></pre>