|
4#
楼主 |
发表于 2008-7-17 15:55:13
|
只看该作者
回复 3# 的帖子
脚本很简单的,我发给你看看吧!vuser_init()
{
web_url("newtours.mercuryinteractive.com",
"URL=http://newtours.mercuryinteractive.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
return 0;
}
Action()
{
lr_start_transaction("log");
web_submit_data("login.php",
"Action=http://newtours.demoaut.com/login.php",
"Method=POST",
"RecContentType=text/html",
"Referer=http://newtours.demoaut.com/",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=action", "Value=process", ENDITEM,
"Name=userName", "Value=moon_alice", ENDITEM,
"Name=password", "Value=moon_alice", ENDITEM,
"Name=login.x", "Value=36", ENDITEM,
"Name=login.y", "Value=7", ENDITEM,
LAST);
lr_end_transaction("log",LR_AUTO)
return 0;
}
vuser_end()
{
web_url("mercurysignoff.php",
"URL=http://newtours.demoaut.com/mercurysignoff.php",
"Resource=0",
"RecContentType=text/html",
"Referer=http://newtours.demoaut.com/mercuryreservation.php",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
return 0;
} |
|