def METHOD_NAME(self, METHOD_NAME):
    # grabbing the GLPI anti-csrf token (GLPI 0.83.3+) by
    # looking for such patterns :
    # <input type='hidden' name='_glpi_csrf_token' value='82d37af7f30d76f2238d49c28167654f'>
    m = re.search('input type="hidden" name="_glpi_csrf_token" value="([0-9a-z]{32})">', METHOD_NAME)
    if m is not None:
        self.glpi_csrf_token = m.group(1)
    m = re.search('input type="password" name="([0-9a-z]{19})" id="login_password"', METHOD_NAME)
    if m is not None:
        self.login_passwordname =  m.group(1)
    m = re.search('input type="text" name="([0-9a-z]{19})" id="login_name"', METHOD_NAME)
    if m is not None:
        self.login_namename =  m.group(1)
    if self.waiting:
        self.waiting = 0
        self.deferred.callback(self)