title: open_uri / Nokogiri redirection problems
body: <p>I am using Nokogiri for scraping a webpage that works fine unless the page has a redirection loop.</p>
  
  <p>So when I scraping this site: <a href="https://www.cardcomplete.com/besuchen-isie-uns-auf-facebook/" rel="nofollow">https://www.cardcomplete.com/besuchen-isie-uns-auf-facebook/</a></p>
  
  <p>I get this error</p>
  
  <pre><code>/home/balint/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/open-uri.rb:224:in open_loop': redirection forbidden: https://www.cardcomplete.com/besuchen-isie-uns-auf-facebook/ -&gt; http://www.facebook.com/cardcomplete (RuntimeError)
  </code></pre>
  
  <p>But when I try to scrape this site I get the same error but now it is redirected to the https version of the facebook page:</p>
  
  <pre><code>/home/balint/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/open-uri.rb:224:in `open_loop': redirection forbidden: http://www.facebook.com/cardcomplete -&gt; https://www.facebook.com/cardcomplete (RuntimeError)
  </code></pre>
  
  <p>Of course, scraping the https version of the facebook page works.</p>
  
  <p>I installed <a href="https://github.com/open-uri-redirections/open_uri_redirections" rel="nofollow">this open_uri_redirections</a> gem that works for the facebook http->https redirection but not for the first link:</p>
  
  <pre><code>doc = Nokogiri::HTML(open('https://www.cardcomplete.com/besuchen-isie-uns-auf-facebook/', :allow_redirections =&gt; :safe))
  </code></pre>
  
  <p>How to solve this?</p>