python request post上传文件是怎么提交的?
POST https://xxxxxxxx.com HTTP/1.1Host: mi.xxxxxxxx.com
Connection: keep-alive
Content-Length: 17261046
Sec-Fetch-Mode: cors
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.87 Safari/537.36
Content-Type: multipart/form-data; boundary=----WebKitFormBoundarytEGBBowVDGRF7gRK
Accept: */*
Origin: https://xxxxxxxx.com
Sec-Fetch-Site: same-origin
Referer: https://mi.creditcard.ecitic.com/citiccard/frontend/apsftweb/caseList.html
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Cookie:
------WebKitFormBoundarytEGBBowVDGRF7gRK
Content-Disposition: form-data; name="caseFile"; filename="JPEG.csv"
Content-Type: application/vnd.ms-excel
字节集上传文件数据
------WebKitFormBoundarytEGBBowVDGRF7gRK--
尝试了很多种方法都不可以
页:
[1]