JMeter post方法数据多种请求格式

请求格式:json,form-data,x-www-form-urlencoded,multipart/form-data

1.json:需要在请求头中添加Content-Type:application/json

2.x-www-form-urlencoded:需要在请求头中添加Content-Type: application/x-www-form-urlencoded

3.multipart/form-data:主要是上传文件,同时也可以添加参数,如下图

同时存在多种格式时,可在对应请求下添加请求头或添加逻辑控制器:

原文地址:https://www.cnblogs.com/cty136/p/14295311.html