HttpClient messages

Discussion in 'Ruby' started by Trans, Aug 2, 2007.

  1. Trans

    Trans Guest

    Any idea why I might be getting these messages when using HttpClient?

    at depth 0 - 18: self signed certificate
    could be a relative URI in location header which is not recommended
    'The field value consists of a single absolute URI' in HTTP spec

    Thanks,
    T.
    Trans, Aug 2, 2007
    #1
    1. Advertising

  2. Trans

    Trans Guest

    On Aug 2, 2:53 pm, Trans <> wrote:
    > Any idea why I might be getting these messages when using HttpClient?
    >
    > at depth 0 - 18: self signed certificate
    > could be a relative URI in location header which is not recommended
    > 'The field value consists of a single absolute URI' in HTTP spec


    This seems to take care of the last two statements:

    # HACK to fix redirect bug/feature
    client.redirect_uri_callback = lambda do |uri, res|
    page = res.header['location'].first
    page =~ %r/http/ ? page : @uri + page
    end

    I'm still baffled by the "certificate" message.

    T.
    Trans, Aug 2, 2007
    #2
    1. Advertising

  3. -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Hi,

    Trans wrote:
    > Any idea why I might be getting these messages when using HttpClient?
    >
    > at depth 0 - 18: self signed certificate


    Because https://rubyforge.org/ uses a self signed certificate which
    means almost no security there. HTTPClient warns you about it.

    Regards,
    // NaHi

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.2.1 (Cygwin)

    iQEVAwUBRrKBqB9L2jg5EEGlAQKxSggAhFwTqFGnKCezT26J0Sore1DkoNsGJ9Rb
    H6phCDRKxDMIhzsh3PEDoN2PMYbuHSufhorhMYjCTyXFw3WNbr4s+pt5UkqK/7Sm
    HqMSI28SAIIXHyV4/UVB8RIvO44c/Bqn+/PzPyp43OKaGlMBC2d34FDpACyb3sxb
    etp+plodBTERzxNZaKeE4EPJK9zlSKg/En0kFHJJhC+NzBdge+S1Ka1se47xhkyB
    wvTxEhK+xyuA9kxX2eCf3CdooXETSvZavf8EsXtge7LE5sCaCpvcFfiHNCEGPx/y
    YwhH6iBYPCf5l27PQWTnNPrn1PNn8DLkfManlPIqxaHK4NVmLNWJug==
    =LS5n
    -----END PGP SIGNATURE-----
    NAKAMURA, Hiroshi, Aug 3, 2007
    #3
    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. Renu
    Replies:
    3
    Views:
    1,256
  2. Dale
    Replies:
    3
    Views:
    529
  3. Maverick
    Replies:
    1
    Views:
    12,210
    Maverick
    Feb 7, 2004
  4. Richard
    Replies:
    0
    Views:
    670
    Richard
    Apr 26, 2004
  5. Alex Hunsley
    Replies:
    1
    Views:
    6,355
    Alex Hunsley
    May 28, 2004
Loading...

Share This Page