案例:
- 请求地址:documentservice11.360doc.com /uploaddocumenthtml5.ashx
- 请求方式:http
- 请求方式:post
- 参数:没有接口文档,通过fiddler抓包获取
guid wu_1eskkmltma6d1oak6351kbpun60 false text/plain true datenow 2021-01-22 16:52:19 false text/plain true id WU_FILE_0 false text/plain true name ${name} false text/plain true type application/octet-stream false text/plain true lastModifiedDate Fri Jan 22 2021 15:09:29 GMT 0800 (中国标准时间) false text/plain true file (binary) false text/plain true
线程组---->添加HTTP请求--->设置请求参数
文件上传,添加参数名称,MIME类型及Content-Type
添加查看结果树,查看请求和响应
请求
响应
Ps:不用添加信息头管理器,否则会报错,MIME类型就是抓包信息里面的Content-Type值