我正在尝试使用CSV数据集配置在JMeter中进行负载测试。
它引发了不支持的媒体类型错误。
Created thread group looping 100
CSV file saved in bin folder
Cookie Manager
Header Manager with content and encoding
HTTP request
Using json extractor extract the refno to pass the value in another request
Passing the refno and apikey and user to another request to get the final result
Getting Unsupported Media type error
1条答案
按热度按时间yftpprvb1#
这意味着您的应用程序不接受随HTTP Header Manager一起发送的Content-Type header
试着禁用它,这样JMeter会发送默认的:
application/x-www-form-urlencoded
,如果没有帮助,请询问您应该提供哪种内容类型更多信息:415 Unsupported Media Type