Forum: Ruby HttpClient messages

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
45196398e9685000d195ec626d477f0e?d=identicon&s=25 Trans (Guest)
on 2007-08-02 20:57
(Received via mailing list)
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.
45196398e9685000d195ec626d477f0e?d=identicon&s=25 Trans (Guest)
on 2007-08-02 21:18
(Received via mailing list)
On Aug 2, 2:53 pm, Trans <transf...@gmail.com> 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.
C4ec160c6223ee24609cbd07fd922be5?d=identicon&s=25 NAKAMURA, Hiroshi (Guest)
on 2007-08-03 03:16
(Received via mailing list)
-----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-----
This topic is locked and can not be replied to.