From: ts Date: 2001-03-03T02:26:55+09:00 Subject: [ruby-talk:11910] Re: TCPSocket >>>>> "A" == Alex McHale writes: A> require 'socket' A> s = TCPSocket.open( 'localhost', 80 ) A> while TRUE A> print s.gets A> end The server wait for a request (GET, PUT, POST, ...), it will not give a response without this request, try require 'socket' s = TCPSocket.open( 'localhost', 80 ) s.puts "GET /" while line = s.gets print line end Guy Decoux