|
web_reg_find("Text=0",
"SaveCount=Login_Count",
"Search=Body",
LAST);
web_custom_request("ASP.login_aspx,App_Web_2qpzm-wx.ashx_2",
"URL=http://192.168.8.254:8081/ajax/ASP.login_aspx,App_Web_2qpzm-wx.ashx?_method=AjaxLoginDo&_session=rw",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.8.254:8081/Login.aspx",
"Snapshot=t217.inf",
"Mode=HTTP",
"EncType=",
"Body=txtUserName={Username}\r\n"
"txtpassword=123456\r\n"
"imagevalue=",
LAST);
if(atoi(lr_eval_string("{Login_Count}"))>0){
lr_log_message("Login secussfully!");
}
else{
lr_error_message("Login fail!");
return -1;
} |
|