讨论: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: