讨论:Jmeter 发送Ajax请求时,得不到响应数据

上一篇 / 下一篇  2014-01-08 13:38:14 / 个人分类:Jmet

新建一个Sampler--HTTP请求,程序是ajax请求,执行后,在结果树里查看不到响应数据,有没有解决办法?普通的http请求是可以拿到响应数据的

Ajax请求:

POSThttp://10.1.1.113:9999/rule/rule/preQueryRule.doHTTP/1.1
Accept: application/json, text/javascript, */*; q=0.01
Content-Type: application/json;charset=UTF-8
X-Requested-With: XMLHttpRequest
Referer:http://10.1.1.113:9999/rule/rule/toUnderwriting.do
Accept-Language: zh-cn
UA-CPU: AMD64
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)
Host: 10.1.1.113:9999
Content-Length: 152
Connection: Keep-Alive
Pragma: no-cache
Cookie: JSESSIONID=twlot2mhwnqk

普通的RAW:

POSThttp://10.1.1.113:9999/rule/rule/queryRule.doHTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Referer:http://10.1.1.113:9999/rule/rule/toUnderwriting.do
Accept-Language: zh-CN
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)
Content-Type: application/x-www-form-urlencoded
UA-CPU: AMD64
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
Content-Length: 118
Host: 10.1.1.113:9999
Pragma: no-cache
Cookie: JSESSIONID=143gpqekhi538

 


TAG:

引用 删除 testJDK   /   2016-08-19 11:38:45
原帖由yangqingtao于2016-06-12 10:10:44发表
找到一个解决方案,需要下载一个jar包


下载什么包呢
yangqingtao的个人空间 引用 删除 yangqingtao   /   2016-06-12 10:10:44
找到一个解决方案,需要下载一个jar包
咖啡涩的个人空间 引用 删除 咖啡涩   /   2016-03-10 12:08:34
想问有没有找到解决方案,遇到同样的问题
 

评分:0

我来说两句

日历

« 2024-04-25  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 33344
  • 日志数: 73
  • 建立时间: 2013-08-01
  • 更新时间: 2014-02-17

RSS订阅

Open Toolbar