I am new to JMeter, trying to the rest Webservice. I am getting a Json response saying
我是JMeter的新手,尝试其余的Webservice。我得到了Json的回应
Response code: 415
Response message: Unsupported Media Type
I have set the HTTP Header Manager
我已经设置了HTTP标头管理器
Content-Type application/json
Request:
Protocol HTTP
Use KeepAlive
Follow Reidrects are checked.
This server is up and running since I am getting the proper response using Postman client.
此服务器已启动并正在运行,因为我使用Postman客户端获得了正确的响应。
1 个解决方案
#1
Most probably your request body is not a JSON format.
很可能您的请求正文不是JSON格式。
Maybe you mixed up parameters and body.
也许你混淆了参数和身体。
- Parameter must be in path after "?"
- Body must be in Body Data tab
参数必须在“?”之后的路径中
正文必须位于“正文数据”选项卡中
#1
Most probably your request body is not a JSON format.
很可能您的请求正文不是JSON格式。
Maybe you mixed up parameters and body.
也许你混淆了参数和身体。
- Parameter must be in path after "?"
- Body must be in Body Data tab
参数必须在“?”之后的路径中
正文必须位于“正文数据”选项卡中