require "socket" TCPSocket.open("www.ard.de", 80) do |socket| socket.puts "GET / HTTP/1.0\n\n" puts socket.read end