From: Desingurajan Aswanthaaman Date: 2008-12-19T00:06:13+09:00 Subject: Get Status Code of URL url = URI.parse("http://www.google.com/") @req = Net::HTTP.new(url.host) @req.start() do |req| x = req.head(url.path) print x end It will print # From Object x i am not able to get only the result (ie. Not found) Any methods associate with x to get status code alone. If there is Some other way to get status code of the url, then also please reply me... -- Posted via http://www.ruby-forum.com/.