From: Desingurajan Aswanthaaman Date: 2008-12-19T10:29:26+09:00 Subject: Re: Get Status Code of URL May be helpful, Only requesting header require 'net/http' url = URI.parse("http://www.google.com/") req = Net::HTTP.new(url.host) req.start() do |req| x = req.head(url.path) puts x.code puts x.message x.each {|key, val| print key," = ",val,"\n" } end -- Posted via http://www.ruby-forum.com/.