From: GOTO Kentaro Date: 2002-09-26T04:47:51+09:00 Subject: Re: http/net At Thu, 26 Sep 2002 04:10:34 +0900, Jim Freeze wrote: > > Net::HTTP.start( url ) {|http| should be Net::HTTP.start(host[, port]){|http| > ./get.rb > /usr/local/lib/ruby/1.6/net/protocol.rb:469:in `new': getaddrinfo: no address associated with hostname. (SocketError) this was caused when Net::HTTP would lookup address of host "http://...". Because http://... is not a hostname and DNS lookup failed. net/http.rb include reference and samples. Try: % rd2 http.rb > http.html or % ruby -ne 'print if /^=begin/.../^/=end/' http.rb | more -- Gotoken