一、Content-Type
content-type 有三种:
1、Content-Type的值为application/x-www-form-urlencoded
参数格式一般为
key1=value1&key2=value2
JMeter用Parameters表单传参
2、Content-Type的值为application/json
参数为json格式
{
"key1":"value1",
"key2":"value2"
}
JMeter 中用BodyData传参
3、Content-Type的值为multipart/form-data
上传文件用这种格式,JMeter中用Files Upload传参
二、Cookie
若信息头中已带cookie值,请不要在脚本中增加cookie管理器