删掉丶关于n1 发表于 2019-8-23 11:06

python request post上传文件是怎么提交的?

POST https://xxxxxxxx.com HTTP/1.1
Host: 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--

尝试了很多种方法都不可以

删掉丶关于n1 发表于 2019-8-23 11:29

页: [1]
查看完整版本: python request post上传文件是怎么提交的?