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
本文来自博客园,作者:OTAKU_nicole,转载请注明原文链接:https://www.cnblogs.com/nicole-zhang/p/14685506.html