fiddler构造表单上传文件的请求

Fiddler使用技巧:
http://www.doc88.com/p-3307506524682.html


Fiddler构造post请求,在请求header头里加上下面语句,提交的body才会被解析成键值对

Content-Type:application/x-www-form-urlencoded


Fiddler构造带文件上传的form表单提交:

完整示例:
---------------------------acebdf13572468(表单域aefFile的开头)
Content-Disposition: form-data; name="aefFile"; filename="2016-07-20 15_17_26.aef"
Content-Type: application/octet-stream(文件上传二进制流)
(此处有空行)
<@INCLUDE *C:UsersAdministratorDesktop2016-07-20 15_17_26.aef*@>
---------------------------acebdf13572468
Content-Disposition: form-data; name="phoneNumber"
Content-Type: text
(此处有空行)
15201468930
---------------------------acebdf13572468--(整个表单的结尾多了两个横线)

原文地址:https://www.cnblogs.com/dongruiha/p/8459828.html