# File lib/cookiejar/cookie.rb, line 153
    def should_send? request_uri, script
      uri = CookieJar::CookieValidation.to_uri request_uri
      # cookie path must start with the uri, it must not be a secure cookie
      # being sent over http, and it must not be a http_only cookie sent to
      # a script
      path_match   = uri.path.start_with? @path
      secure_match = !(@secure && uri.scheme == 'http') 
      script_match = !(script && @http_only)
      expiry_match = !expired?
      ports_match = ports.nil? || (ports.include? uri.port)
      path_match && secure_match && script_match && expiry_match && ports_match
    end