Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > HttpClient messages

Reply
Thread Tools

HttpClient messages

 
 
Trans
Guest
Posts: n/a
 
      08-02-2007
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.


 
Reply With Quote
 
 
 
 
Trans
Guest
Posts: n/a
 
      08-02-2007


On Aug 2, 2:53 pm, Trans <(E-Mail Removed)> 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.


 
Reply With Quote
 
 
 
 
NAKAMURA, Hiroshi
Guest
Posts: n/a
 
      08-03-2007
-----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)

iQEVAwUBRrKBqB9L2jg5EEGlAQKxSggAhFwTqFGnKCezT26J0S ore1DkoNsGJ9Rb
H6phCDRKxDMIhzsh3PEDoN2PMYbuHSufhorhMYjCTyXFw3WNbr 4s+pt5UkqK/7Sm
HqMSI28SAIIXHyV4/UVB8RIvO44c/Bqn+/PzPyp43OKaGlMBC2d34FDpACyb3sxb
etp+plodBTERzxNZaKeE4EPJK9zlSKg/En0kFHJJhC+NzBdge+S1Ka1se47xhkyB
wvTxEhK+xyuA9kxX2eCf3CdooXETSvZavf8EsXtge7LE5sCaCp vcFfiHNCEGPx/y
YwhH6iBYPCf5l27PQWTnNPrn1PNn8DLkfManlPIqxaHK4NVmLN WJug==
=LS5n
-----END PGP SIGNATURE-----

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem setting proxy credentials in Jakarta HttpClient 2.0 Alex Hunsley Java 1 05-28-2004 03:02 PM
Help with Jakarta HttpClient Cookies Richard Java 0 04-26-2004 09:14 PM
HTTPClient - Sessions and cookies what am I doing wrong? Maverick Java 1 02-07-2004 02:25 PM
HTTPClient: specifying url string Dale Java 3 11-11-2003 02:59 AM
Post messaging using HTTPClient Renu Java 3 08-21-2003 10:28 AM



Advertisments