Re: net/protocol.rb & Name or service not known (SocketError)
Stefan Schmiedl <[email protected]> Wed, 23 Feb 2005 20:26:46 +0100
| Newsgroups | gmane.comp.lang.ruby.german |
|---|---|
| Message-ID | <20050223192646.GB21656@workhorse> |
robert kuzelj (2005-02-23 20:07):
> require 'net/http'
>=20
> h =3D Net::HTTP.new('http://www.yahoo.com', 8080)
h =3D Net::HTTP.new('www.yahoo.com', 80)
> resp, data =3D h.get('/index.html', nil )
> puts "Code =3D #{resp.code}"
> puts "Message =3D #{resp.message}"
>=20
viel spa=DF!
s.
--=20
Stefan Schmiedl
+-------------------------------+----------------------------------------=
+
|Approximity GmbH | EDV-Beratung Schmiedl =
|
|http://www.approximity.com | Am Br=E4uweiher 4, 93499 Zandt, Germany=
|
|mailto:[email protected] | Tel. (09944) 3068-98, Fax -97 =
|
+-------------------------------+----------------------------------------=
+