# File lib/openid/fetchers.rb, line 131
    def do_get(url, limit=5)
      if limit == 0
        return nil
      end
      begin
        u = URI.parse(url)
        http = get_http_obj(u)
        http.start {
          if HAS_OPENSSL and u.is_a?(URI::HTTPS) and @ca_path
            # do the post_connection_check, which verifies that
            # the host matches the cert
            http.post_connection_check(u.host)
          end
        }
        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 do_get(resp["location"], limit-1)
        else
          nil
        end
      end
    end