|
登陆脚本如下IP和帐号内容代替为xxx)
#include "web_api.h"
Action()
{
web_url("xxxx",
"URL=http://xxx.xxx.xxx.xxx:xxxx/xxxx",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_submit_data("login;jsessionid=76B27DF06C79E1A31399A138ED94F1CE",
"Action=https://xxx.xxx.xxx.xxx:xxxx/login;jsessionid={JSESSIONID2}",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=username", "Value=user", ENDITEM,
"Name=password", "Value=passwd", ENDITEM,
"Name=rand", "Value=3768", ENDITEM,
"Name=lt", "Value=_cAE71270E-E8C1-7363-7922-93DE3C75E3B4_k309245EF-3A2B-A7B9-564A-C4E3C870DBAD", ENDITEM,
"Name=_eventId", "Value=submit", ENDITEM,
"Name=submit", "Value=登录", ENDITEM,
LAST);
web_reg_find("Text=verifycode",
LAST);
/*
//检查登录结果
if("Text=verifycode")
{
lr_output_message("登录成功啦!");
}
else
{
lr_error_message("登录失败啦!");
}
*/
return 0;
}
执行结果老是报:
"Error -27257: Pending web_reg_find request(s) detected and reset at the end of iteration number 1"
请高手指点一下迷津,先谢谢啊
另外我注释的那段if判断好象也有点问题,希望能帮我指明一下... |
|