Forum: Ruby bug in OpenURI#redirectable?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Chris McMahon (Guest)
on 2007-02-26 21:20
(Received via mailing list)
Use open-uri to go to

Receive error message

"redirection forbidden: ->"

Comment out this from open-uri:

      #unless OpenURI.redirectable?(uri, redirect)
      #  raise "redirection forbidden: #{uri} -> #{redirect}"
      # end

Try again and receive this error:

certificate verify failed (OpenSSL::SSL::SSLError)

In this case, looking at the packets, open-uri seems to be mangling
something on the redirect, because the cookie being set is expired.  I
haven't pursued any more diagnosis on the error, but if anyone could
suggest a way to make this work correctly, I would be happy to hear

This topic is locked and can not be replied to.