|
3#
楼主 |
发表于 2018-1-22 16:13:34
|
只看该作者
我看了我录的脚本,里面没有出现web_add_cookie()这个函数
web_reg_save_param("session_id",
"LB=userSession value=",
"RB=>",
"ORD=1",
LAST );
web_url("welcome.pl",
"URL=http://127.0.0.1:1080/WebTours/welcome.pl?signOff=true",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
lr_think_time(8);
web_submit_data("login.pl",
"Action=http://127.0.0.1:1080/WebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value={session_id}", ENDITEM,
"Name=username", "Value=admin", ENDITEM,
"Name=password", "Value=admin", ENDITEM,
"Name=login.x", "Value=0", ENDITEM,
"Name=login.y", "Value=0", ENDITEM,
"Name=JSFormSubmit", "Value=on", ENDITEM,
LAST);
web_url("geturl.php",
"URL=http://config.pinyin.sogou.com/api/toolbox/geturl.php?h=17DA73A355FCDAEDBB272262F3DF1903&v=8.5.0.1144&r=0000__8.2f",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Mode=HTML",
LAST);
lr_think_time(5);
web_url("welcome.pl_2",
"URL=http://127.0.0.1:1080/WebTours/welcome.pl?signOff=1",
"Resource=0",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?page=menu&in=home",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
return 0; |
|