bug in OpenURI#redirectable?

C

Chris McMahon

Use open-uri to go to http://www.gmail.com

Receive error message

"redirection forbidden: http://mail.google.com/mail/ ->
https://www.google.com/accounts/Ser..."

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
it.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top