[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

HttpClient messages

Trans

8/2/2007 6:54:00 PM

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.


2 Answers

Trans

8/2/2007 7:15:00 PM

0



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.


NAKAMURA, Hiroshi

8/3/2007 1:16:00 AM

0

-----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://ruby... 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-----