bug in OpenURI#redirectable?

Discussion in 'Ruby' started by Chris McMahon, Feb 26, 2007.

  1. 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.
     
    Chris McMahon, Feb 26, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Michael W. Cocke
    Replies:
    1
    Views:
    420
    Jim Gibson
    Oct 9, 2003
  2. Daniel Berger

    Gem error: OpenURI::HTTPError

    Daniel Berger, Nov 18, 2005, in forum: Ruby
    Replies:
    0
    Views:
    160
    Daniel Berger
    Nov 18, 2005
  3. Jon Lim
    Replies:
    0
    Views:
    155
    Jon Lim
    Nov 21, 2005
  4. hadley wickham
    Replies:
    1
    Views:
    185
    Tom Copeland
    Nov 24, 2007
  5. Romulo Ceccon
    Replies:
    0
    Views:
    135
    Romulo Ceccon
    Jan 12, 2008
Loading...

Share This Page