require 'net/http' Net::HTTP.start('www.php.net', 80) { |req| print req.get('/').body }