Jmeter测试接口详细步骤(六)HTTP信息头管理器,Content type 'text/plain;charset=UTF-8' not supported

接口参数若使用了消息体数据,可能会碰到一个报错信息

“status":415,"error":"Unsupported Media Type","message":"Content type 'text/plain;charset=UTF-8' not supported"

 

此时需要增加一个HTTP信息头管理器,线程组(或接口)-添加-配置元件-HTTP信息头管理器

 

  • 名称:Content-Type 
  • 值:application/json

 

posted @ 2021-04-21 15:40  OTAKU_nicole  阅读(1074)  评论(0)    收藏  举报