From: Manuel Carrasco Date: 2009-09-02T00:30:29+09:00 Subject: [ruby-core:25247] [Bug #2027] open-uri doesn't suport redirections to secure servers Bug #2027: open-uri doesn't suport redirections to secure servers http://redmine.ruby-lang.org/issues/show/2027 Author: Manuel Carrasco Status: Open, Priority: High Category: core ruby -v: ruby 1.8.7 (2008-05-31 patchlevel 0) [x86_64-linux] When the server reponse is a redirection to a secure server, open-uri fails raising a runtime exception with this message: (RuntimeError) redirection forbidden: http://hudson.gotdns.com/latest/hudson.war -> https://hudson.dev.java.net/files/documents/2402/142380/hudson.war /mirai/SOFT/ruby/1.8.7/lib/ruby/1.8/open-uri.rb:174:in `open_loop' /mirai/SOFT/ruby/1.8.7/lib/ruby/1.8/open-uri.rb:132:in `open_uri' I attach a patch that fixes this issue. Thanks ---------------------------------------- http://redmine.ruby-lang.org