JMeter:报错(Content type 'text/plain;charset=UTF-8' not supported")

在运行脚本的时候报错:(不支持JSON格式)
JMeter:报错(Content type 'text/plain;charset=UTF-8' not supported")

解决方式:使用正确的传输格式
1、配置HTTP信息头管理器,增加消息头 Content-Type:application/json;charset=UTF-8

JMeter:报错(Content type 'text/plain;charset=UTF-8' not supported")

2、使用消息提数据

JMeter:报错(Content type 'text/plain;charset=UTF-8' not supported")

JMeter:报错(Content type 'text/plain;charset=UTF-8' not supported")

响应头里查看Content-Type类型:

JMeter:报错(Content type 'text/plain;charset=UTF-8' not supported")