ts wrote:
>>>>>>"E" == Eugene Scripnik <Eugene.Scripnik / itgrp.net> writes:
>>>>>
> 
> E> fetch.rb:
> E> #!/usr/local/bin/ruby -w
> 
> pigeon% ruby -w
> require 'net/http'
> require 'uri'
> 
> uri = 'http://www.sms.de/'
> response = Net::HTTP.get_response( URI.parse( uri ) )
> while Net::HTTPRedirection === response
>      puts response['Location']
>      response = Net::HTTP.get_response( URI.parse( response['Location'] ) )
> end
> p response
> ^D
> http://www-737cad4afe3f6c860e968995274d025e.id.sms.de:80/
> http://www.sms.de:80/login/refused.php3?log=c
> http://www-57245dbdce8086d069e4a476c09ff41e.id.sms.de:80/login/refused.php3?log=c
> #<Net::HTTPOK 200 readbody=true>
> pigeon% 

Interesting, here is my output:

http://www-18fea2c6be4fbed8d7597f5a7fcbd530.id.sms.de:80/
/usr/local/lib/ruby/1.8/net/protocol.rb:399:in `initialize': 
getaddrinfo: No address associated with hostname (SocketError)
     from /usr/local/lib/ruby/1.8/net/protocol.rb:399:in `new'
     from /usr/local/lib/ruby/1.8/net/protocol.rb:399:in `connect'
     from /usr/local/lib/ruby/1.8/net/protocol.rb:398:in `timeout'
     from /usr/local/lib/ruby/1.8/net/protocol.rb:398:in `connect'
     from /usr/local/lib/ruby/1.8/net/protocol.rb:380:in `initialize'
     from /usr/local/lib/ruby/1.8/net/protocol.rb:151:in `open'
     from /usr/local/lib/ruby/1.8/net/protocol.rb:151:in `conn_socket'
     from /usr/local/lib/ruby/1.8/net/http.rb:675:in `do_start'
     from /usr/local/lib/ruby/1.8/net/protocol.rb:131:in `start'
     from /usr/local/lib/ruby/1.8/net/http.rb:635:in `get_by_uri'
     from /usr/local/lib/ruby/1.8/net/http.rb:621:in `get_response'
     from ./fetch.rb:10