title: open-uri is not redirecing http to https
body: <p>I am using Hpricot and OpenURI to parse webpages and extract URLs from them.</p>
  
  <p>When I get a link like "http:rapidshare.com", it is not redirecting to https.
  This is the error I got:</p>
  
  <pre><code>/home/leonidus/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/open-uri.rb:216:in 
  `open_loop': redirection forbidden: http:.................=&gt;     
  https:.........................
  .
  .
  </code></pre>
  
  <p>I tried to use the exception handler <code>OPENURI::HTTPREDIRECT</code> but then again I am getting the same error. I tried all the blogs but it is not resolved there also.</p>