class_docstr: Authenticate via Basic authentication to some other post url
  
  TODO:  actually this is some remnants which might later were RFed
  into the form authenticator since otherwise they make little sense
class_docstr_tok: ["Authenticate","via","Basic","authentication","to","some","other","post","url","TODO",":","actually","this","is","some","remnants","which","might","later","were","RFed","into","the","form","authenticator","since","otherwise","they","make","little","sense"]
code: def _post_credential(self, credentials, post_url, session):
      authenticator = self.REQUESTS_AUTHENTICATOR(
          *[credentials[f] for f in self.REQUESTS_FIELDS]
      )
      session.auth = authenticator
      response = session.post(post_url, data={}, auth=authenticator)
      auth_request = response.headers.get("www-authenticate")
      if response.status_code == 401 and auth_request:
          if auth_request.lower().split(" ", 1)[0] == "basic":
              if response.url != post_url:
                  # was instructed to authenticate elsewhere
                  # TODO: do we need to loop may be??
                  response2 = session.get(
                      response.url, auth=authenticator
                  )
                  return response2
          else:
              lgr.warning(
                  f"{self} received response with www-authenticate={auth_request!r} "
                  "which is not Basic, and thus it cannot handle ATM."
              )
      return response
  
imports: import re
  import requests
  import requests.auth
  from requests.utils import parse_dict_header
  import io
  from time import sleep
  from ..None import __version__
  from ..utils import ensure_list_from_str, ensure_dict_from_str, ensure_bytes
  from ..dochelpers import borrowkwargs
  from ..ui import ui
  from ..utils import auto_repr
  from ..support.network import get_url_filename
  from ..support.network import get_response_disposition_filename
  from ..support.network import rfc2822_to_epoch
  from ..support.cookies import cookies_db
  from ..support.status import FileStatus
  from ..support.exceptions import AccessDeniedError, AccessFailedError, CapturedException, DownloadError, UnhandledRedirectError
  from .base import Authenticator
  from .base import BaseDownloader, DownloaderSession
  from logging import getLogger
  from ..log import LoggerHelper
label_desc: Use image node_id 1 for calling the HTTPAuthAuthenticator obj's underlying member method code with example usage: obj._post_credential(credentials, post_url, session) and returns: response, response2