# File lib/openid/fetchers.rb, line 69 def doGet(url, limit=5) if limit == 0 return nil end begin u = URI.parse(url) http = getHTTPobj(u.host, u.port) resp = http.get(u.request_uri) rescue nil else case resp when Net::HTTPSuccess then [resp, URI.parse(url).to_s] when Net::HTTPRedirection then doGet(resp["location"], limit-1) else nil end end end