import requests put_url = 'http://statres.oss-cn-hongkong.aliyuncs.com/20190517141057288383.png?OSSAccessKeyId=LTAIyMkGfEdogyL9&Expires=1558080657&Signature=BNQroehfSKyvW9EZ3p7%2FOCI3Aeo%3D' ddd = open('D:/11.jpg', 'rb') print(ddd) # exit() res = requests.put(put_url, data=open('D:/048.jpg', 'rb'), headers={}) print(res)