def get_contents_except_resources(uri, &block)
      clear
      uri = URI.parse(uri)
      @req = Net::HTTP::Get.new uri.request_uri
      set_common_info(@req)
      @http_class.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
        @res = http.request(@req)
        case @res
          when Net::HTTPOK
            block.call(@res) if block_given?
          else
            raise RequestError, "Failed to get contents. #{@res.code}"
        end
      end
    end
def get_contents_except_resources(uri, &block)
      clear
      uri = URI.parse(uri)
      @req = Net::HTTP::Get.new uri.request_uri
      set_common_info(@req)
      @http_class.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
        @res = http.request(@req)
        case @res
          when Net::HTTPOK
            block.call(@res) if block_given?
          else
            raise RequestError, "Failed to get contents. #{@res.code}"
        end
      end
    end
Get contents, for example, service-document, categories, and feed.