title: Rails: How to get the servers response HTTP headers?
body: <p>I want to autodetect the pingback-url of remote websites, so I need to parse the HTTP response headers sent by the remote server. I don't need and don't want the contents of the remote website, I'm only looking for something like this:</p>
  
  <pre><code>X-Pingback: http://www.techcrunch.com/xmlrpc.php
  </code></pre>
  
  <p>Similar to using curl:</p>
  
  <pre><code>curl -I "your url"
  </code></pre>
  
  <p>Is there a way to do this with rails? When using open-uri I can only get the contents but not the headers.</p>
  
  <p>Thank you!
  Ole</p>