Python http方式的下载,参考:https://blog.csdn.net/fen_fen/article/details/113753983
https需要先安装需要的模块
upload_strategy(access_token,"123456789")
global pkcs12_filename, pkcs12_password
pkcs12_filename = './conf/xxx-client-cert-xxx.p12'
pkcs12_password = 'xxx'
self.host=10.1.1.101
# 上传文件
def upload_file(self, access_token,appid):
#warnings.simplefilter('ignore', ResourceWarning)
# filepath = os.getcwd()
# print(filepath)
# print(filepath+"\data\\"+fileName)
try:
header_up = {"Authorization": "Bearer " + access_token}
file=ope