Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 619db81c64
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (16 sloc) 0.407 kb
require 'net/http'
pages = %w( http://www.dell.com
http://www.apple.com
http://www.google.co.uk
http://www.nauta.com
http://www.engadget.com
http://www.yahoo.com )
threads = []
pages.each do |page|
threads << Thread.new(page) do |uri|
p "Fetching: #{page}..."
resp = Net::HTTP.get_response(URI(uri))
p "Got #{page}: #{resp.message}"
end
end
threads.each{|t| t.join}
Jump to Line
Something went wrong with that request. Please try again.