不知道这个应用是怎么处理的,一般SESSIONID在打开登陆页面的时候带的,提交用户名和密码操作的时候不含SESSIONID的.我这里有个类似的脚本片段:
web_url("cms",
"URL=http://192.168.66.20:7001/cms",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=/cms/unieap/pages/login/images/mainbanner.swf", "Referer=http://192.168.66.20:7001/cms/login.do;jsessionid=HnLL37J3yz0x7VGT4R4y1HMt8ftTqbGb32FDfQdd1QSzkPPQByQx!-2116935259?method=begin", ENDITEM,
LAST);
lr_rendezvous("集合点");
lr_start_transaction("login");
web_submit_form("j_unieap_security_check.do",
"Snapshot=t2.inf",
ITEMDATA,
"Name=j_username", "Value={user}", ENDITEM,
"Name=j_password", "Value=xxx", ENDITEM,
"Name=image.x", "Value=39", ENDITEM,
"Name=image.y", "Value=12", ENDITEM,
EXTRARES,
"Url=unieap/pages/login/images/menubg.gif", "Referer=http://192.168.66.20:7001/cms/cms/rootmenu.do", ENDITEM,
LAST);
web_url("pngfix.js",
"URL=http://192.168.66.20:7001/cms/cms/pages/menu/style/images/pngfix.js",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.66.20:7001/cms/cms/rootmenu.do",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
web_url("childmenu.do",
"URL=http://192.168.66.20:7001/cms/cms/childmenu.do?parentName=1100",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.66.20:7001/cms/login.do?method=login",
"Snapshot=t4.inf",
"Mode=HTML",
EXTRARES,
"Url=../unieap/pages/login/images/welcome.gif", "Referer=http://192.168.66.20:7001/cms/cms/SellstatisticsAction.do?method=begin", ENDITEM,
"Url=../unieap/pages/login/images/menu_on_center.gif", "Referer=http://192.168.66.20:7001/cms/cms/pages/bottom.jsp", ENDITEM,
LAST);
web_submit_data("SellstatisticsAction.do",
"Action=http://192.168.66.20:7001/cms/cms/SellstatisticsAction.do?method=begin",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.66.20:7001/cms/cms/childmenu.do?parentName=1100",
"Snapshot=t5.inf",
"Mode=HTML",
ITEMDATA,
LAST);
lr_end_transaction("login", LR_AUTO); |