分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow
也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!
Badboy 录制好脚本以后,使用 JMeter 打开,直接运行测试,发现有个 Ajax 提交表单的时候出错了。服务器返回信息如下:
HTTP Status 415 -
type Status report
message
description The server refused this request because the request entity is in a format not supported by the requested resource for the requested method.
监听器 "察看结果树" 里发现该次请求:
Request Headers:
Content-Length: 7207
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
既然是 Json 请求,这个 Content-Type 肯定有问题。所以为该次请求修改请求头里的 Content-Type 修正为 application/json;charset=UTF-8 之后,问题解决。
HTTP Status 415 -
type Status report
message
description The server refused this request because the request entity is in a format not supported by the requested resource for the requested method.
监听器 "察看结果树" 里发现该次请求:
Request Headers:
Content-Length: 7207
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
既然是 Json 请求,这个 Content-Type 肯定有问题。所以为该次请求修改请求头里的 Content-Type 修正为 application/json;charset=UTF-8 之后,问题解决。
给我老师的人工智能教程打call!http://blog.csdn.net/jiangjunshow
![这里写图片描述](https://i-blog.csdnimg.cn/blog_migrate/2e19ffb3303a490d20ea5d00dd397156.gif)