# HttpClient messages

**URL:** <https://www.ruby-forum.com/t/httpclient-messages/111120>\
**Category:** Ruby\
**Created:** [August 2, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/httpclient-messages/111120 "2007-08-02T20:57:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trans](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/dfb087/32.png) [@Trans](https://www.ruby-forum.com/u/Trans)\
**Post date:** [August 2, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/httpclient-messages/111120/1 "2007-08-02T20:57:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Trans](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/dfb087/32.png) [@Trans](https://www.ruby-forum.com/u/Trans)\
**Post date:** [August 2, 2007, 9:18pm UTC](https://www.ruby-forum.com/t/httpclient-messages/111120/2 "2007-08-02T21:18:12Z")

</div>

On Aug 2, 2:53 pm, Trans [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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.

---

<div class="post-metadata">

**Author:** ![Trans](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/dfb087/32.png) [@Trans](https://www.ruby-forum.com/u/Trans)\
**Post date:** [August 3, 2007, 3:16am UTC](https://www.ruby-forum.com/t/httpclient-messages/111120/3 "2007-08-03T03:16:41Z")

</div>

-----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/](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-----
