> As far as I can see you read the whole stream in one go with
> sock.read.  Try this instead
> 
> sock.each_line do |line|
>   puts line
> end
> 
> Kind regards
> 
> robert

It worked perfectly, thank you.
-- 
Posted via http://www.ruby-forum.com/.