上传报告
这是网页源码,我通过下面这方法去写,为啥上传失败呢
files=["ReportForm[url]",('齐家网COO毛新勇:《未来平台赋能是必然,但要真刀真枪才有意义》-18页.pdf',str(open(file,'rb').read()),'application/pdf')]
Data={'_csrf':csrf_token}
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36'
}
response=requests.post(url=url,cookies=cookies,data=Data,headers=headers)
print(response.request.body)### 题目描述