JMeter中post不同格式参数的处理方式

一、Content-type:application/json

1、设置header manager 中 Content-Type  为 application/json

 2、HTTP request 中 参数填写方式 下列二选一

二、content-type:application/x-www-form-urlencoded

参数格式:key1=value1&key2=value2 

HTTP request 中 参数填写方式 下列二选一

 

3、content-type:multipart/form-data

传参格式:name="XXXX";value="XXXX"; 比如name="files";filename="2record.wav"

 

 

 

posted @ 2024-03-22 16:28  木头人11  阅读(156)  评论(0编辑  收藏  举报