# File lib/httpauth/digest.rb, line 347
      def validate(options)
        ho = @h.merge(options)
        raise ArgumentError.new("You have to set the :request_body value if you want to use :qop => 'auth-int'") if @h[:qop] == 'auth-int' and ho[:request_body].nil?
        raise ArgumentError.new("Please specify the request method :method (ie. GET)") if ho[:method].nil?
        
        calculated_response = Utils.calculate_digest(ho, @s, :request)
        if ho[:response] == calculated_response
          @reason = ''
          return true
        else
          @reason = "Response isn't the same as computed response #{ho[:response]} != #{calculated_response} for #{ho.inspect}"
        end
        false
      end