HttpClient messages

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.

On Aug 2, 2:53 pm, Trans [email protected] 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.

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