TA的每日心情 | 奋斗 2015-6-25 18:04 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
本帖最后由 qiguojie 于 2011-3-9 15:46 编辑
2个参数也一样。我也试过了。。
Action()
{
web_reg_find("SaveCount=Login_Count","Text=欢迎您",LAST);
web_submit_data("logging.php",
"Action=http://bbs.51testing.com/logging.php?action=login&loginsubmit=yes&inajax=1",
"Method=POST",
"TargetFrame=",
"RecContentType=application/xml",
"Referer=http://bbs.51testing.com/logging.php?action=login",
"Mode=HTML",
ITEMDATA,
"Name=formhash", "Value=1bf5c0b1", ENDITEM,
"Name=referer", "Value=", ENDITEM,
"Name=loginfield", "Value=username", ENDITEM,
"Name=username", "Value={NewParam}", ENDITEM,
"Name=password", "Value={NewParam_1}", ENDITEM,
"Name=questionid", "Value=0", ENDITEM,
"Name=answer", "Value=", ENDITEM,
"Name=cookietime", "Value=2592000", ENDITEM,
EXTRARES,
"Url=/images/default/check_error.gif", "Referer=http://bbs.51testing.com/logging.php?action=login", ENDITEM,
LAST);
lr_message("The Login Time is: %s", lr_eval_string("{Login_Count}"));
return 0;
}
参数文件:
user,pw
qiguojie,XXXXXX
输出日志:
Starting action Action.
Action.c(4): Registering web_reg_find was successful [MsgId: MMSG-26390]
Action.c(6): Downloading resource "http://bbs.51testing.com/images/default/check_error.gif" (specified by argument number 34) [MsgId: MMSG-26577]
Action.c(6): Registered web_reg_find successful for "Text=欢迎您" (count=1) [MsgId: MMSG-26364]
Action.c(6): web_submit_data("logging.php") was successful, 852 body bytes, 1427 header bytes, 12 chunking overhead bytes [MsgId: MMSG-26385]
The Login Time is: 1
Ending action Action. |
|