|
用wap协议录制的脚本:
Action()
{
web_add_cookie("JSESSIONID=F5C199236A82B5C9CC9AD38C04DA4B84.t2; DOMAIN=wap.10658203.com");
web_add_cookie("JSESSIONID=204A3E78F003F91AD9C9714B2C586CFF.t2; DOMAIN=wap.10658203.com");
web_url("index.jsp",
"URL=http://wap.10658203.com/index.jsp",
"Resource=0",
"RecContentType=text/vnd.wap.wml",
"Referer=",
"Mode=HTTP",
LAST);
web_url("hopa.wbmp",
"URL=http://wap.10658203.com/images/hopa.wbmp",
"Resource=1",
"RecContentType=image/vnd.wap.wbmp",
"Referer=",
LAST);
lr_think_time( 6 );
web_submit_data("add.jsp",
"Action=http://wap.10658203.com/add.jsp",
"Method=POST",
"RecContentType=text/vnd.wap.wml",
"Referer=",
"Mode=HTTP",
ITEMDATA,
"Name=pid", "Value=", ENDITEM,
"Name=cycle", "Value=0", ENDITEM,
LAST);
lr_think_time( 15 );
web_submit_data("checkMsg.do",
"Action=http://wap.10658203.com/checkMsg.do",
"Method=POST",
"RecContentType=text/vnd.wap.wml",
"Referer=",
"Mode=HTTP",
ITEMDATA,
"Name=pid", "Value=", ENDITEM,
"Name=message", "Value=", ENDITEM,
"Name=message1", "Value=0", ENDITEM,
"Name=message2", "Value=testing", ENDITEM,
"Name=cycle", "Value=0", ENDITEM,
"Name=year", "Value=2010", ENDITEM,
"Name=month", "Value=02", ENDITEM,
"Name=day", "Value=11", ENDITEM,
"Name=weeks", "Value=", ENDITEM,
"Name=hour", "Value=09", ENDITEM,
"Name=minute", "Value=48", ENDITEM,
"Name=sRand1", "Value=1917", ENDITEM,
LAST);
web_submit_data("checkPhone.do",
"Action=http://wap.10658203.com/checkPhone.do",
"Method=POST",
"RecContentType=text/vnd.wap.wml",
"Referer=",
"Mode=HTTP",
ITEMDATA,
"Name=msisdn", "Value=15922962631", ENDITEM,
"Name=pid", "Value=", ENDITEM,
"Name=cycle", "Value=0", ENDITEM,
"Name=message", "Value=testing", ENDITEM,
"Name=message1", "Value=0", ENDITEM,
"Name=year", "Value=2010", ENDITEM,
"Name=month", "Value=02", ENDITEM,
"Name=day", "Value=11", ENDITEM,
"Name=weeks", "Value=null", ENDITEM,
"Name=hour", "Value=09", ENDITEM,
"Name=minute", "Value=48", ENDITEM,
"Name=sRand2", "Value=3638", ENDITEM,
LAST);
lr_think_time( 7 );
web_submit_data("checkPhone.do_2",
"Action=http://wap.10658203.com/checkPhone.do",
"Method=POST",
"RecContentType=text/vnd.wap.wml",
"Referer=",
"Mode=HTTP",
ITEMDATA,
"Name=pid", "Value=15922962631", ENDITEM,
"Name=userType", "Value=1", ENDITEM,
"Name=aid", "Value=0000", ENDITEM,
"Name=cycle", "Value=0", ENDITEM,
"Name=message", "Value=testing", ENDITEM,
"Name=year", "Value=2010", ENDITEM,
"Name=month", "Value=02", ENDITEM,
"Name=day", "Value=11", ENDITEM,
"Name=weeks", "Value=null", ENDITEM,
"Name=hour", "Value=09", ENDITEM,
"Name=minute", "Value=48", ENDITEM,
"Name=sRand2", "Value=3638", ENDITEM,
LAST);
return 0;
}
需要关联sRand1,sRand2.但是一直都提示: Error -27190: No match found for the requested parameter "add1". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size
web_submit_data highest severity level was "ERROR", 2958 body bytes, 229 header bytes [MsgId: MMSG-27178] |
|