知识是在不断思考与提问中积累的,我思考了,但解决不了,请大侠赐教
web_custom_request("CheckUserEnable","URL=http://192.168.0.3:9090/SystemManage/WSFiles/WsUserLogin.asmx/CheckUserEnable",
"Method=POST",
"TargetFrame=",
"Resource=1",
"RecContentType=application/json",
"Referer=http://192.168.0.3:9090/frmLogin.aspx",
"EncType=application/json",
"Body={strUser:'ocean28'}",
LAST);
web_custom_request("Load",
"URL=http://192.168.0.3:9090/SystemManage/WSFiles/WsUserLogin.asmx/Load",
"Method=POST",
"TargetFrame=",
"Resource=1",
"RecContentType=application/json",
"Referer=http://192.168.0.3:9090/frmLogin.aspx",
"EncType=application/json",
"Body={strUser:'ocean28',strPwd:'001'}",
LAST);
参数化脚本中的登录用户和密码Body={strUser:'ocean28',strPwd:'001'}", 我作了参数化之后,开始加压,从最少的两个用户开始,只能成功一个,且用户名是未参数化的值;就是说我参数化不成功,可是脚本就这两处可以参数化,我换了windows sockets协议又都能成功,为什么呢 把你参数化后的脚本放上来
回复 2# 的帖子
web_custom_request("CheckUserEnable","URL=http://192.168.0.3:9090/SystemManage/WSFiles/WsUserLogin.asmx/CheckUserEnable",
"Method=POST",
"TargetFrame=",
"Resource=1",
"RecContentType=application/json",
"Referer=http://192.168.0.3:9090/frmLogin.aspx",
"EncType=application/json",
"Body={strUser:'ocean28'}",
LAST);
web_custom_request("Load",
"URL=http://192.168.0.3:9090/SystemManage/WSFiles/WsUserLogin.asmx/Load",
"Method=POST",
"TargetFrame=",
"Resource=1",
"RecContentType=application/json",
"Referer=http://192.168.0.3:9090/frmLogin.aspx",
"EncType=application/json",
"Body={strUser:'{user}',strPwd:'{pw}'}",
LAST);
参数{user} {pw} 是已存在的数据库中导入的数据 你把参数化的边界从{}改成[]就行了,
回复 4# 的帖子
还是一样的问题,我继续找找学习中...... 要么就是body段不支持参数化了,这个我记得不是很清楚了开始的问题是你body里面的外面{}会被认为是一个参数说明,导致提示错误,如果换了还不行,那么只能说body段不支持参数化 strUser:'ocean28',strPwd:'001'
这个是参数名么,没做过这样的,楼主用的什么协议
页:
[1]