[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

bug in OpenURI#redirectable?

Chris McMahon

2/26/2007 7:18:00 PM


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

Receive error message

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

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.