python3
import base64
userpass = username + ':' + password
encoded_u = base64.b64encode(userpass.encode()).decode()
headers = {"Authorization" : "Basic %s"
参考
Base64 Authentication Python
Base64 Authentication Python
阅读 273
2022-09-26
python3
import base64
userpass = username + ':' + password
encoded_u = base64.b64encode(userpass.encode()).decode()
headers = {"Authorization" : "Basic %s"
Base64 Authentication Python
相关推荐
精彩评论(0)