Base64 Authentication Python
python3
import base64 userpass = username + ':' + password encoded_u = base64.b64encode(userpass.encode()).decode() headers = {"Authorization" : "Basic %s" % encoded_u}
python3
import base64 userpass = username + ':' + password encoded_u = base64.b64encode(userpass.encode()).decode() headers = {"Authorization" : "Basic %s" % encoded_u}