当前代码:
url='http://abc.com/upload.php'
filename='test.txt'
files = {'doc': (filename,open(filename,'rb'),'application/octet-stream')}
r=requests.post(url,files=files)
print(r.text)
如何获取上传进度呢
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
看这里的回答:
http://stackoverflow.com/questions/13909...
requests 做不到的