|
想把用户名输出到指定的文件中,总是报错,
/* 登陆 */
web_url("login.jsp",
"URL=http://100.10.130.19:7001/Gzip/login.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t10.inf",
"Mode=HTML",
EXTRARES,
"Url=images/login_anniu1on.gif", ENDITEM,
"Url=images/login_anniu2on.gif", ENDITEM,
"Url=images/login_anniu3on.gif", ENDITEM,
LAST);
lr_think_time(4);
web_set_max_html_param_len("1024");
web_reg_save_param("userID",
"LB= <input type=text name=userID",
LAST);
web_submit_data("ActionLogin.jsp",
"Action=http://100.10.130.19:7001/Gzip/ActionLogin.jsp",
"Method=POST",
"RecContentType=text/html",
"Referer=http://100.10.130.19:7001/Gzip/login.jsp",
"Snapshot=t11.inf",
"Mode=HTML",
ITEMDATA,
"Name=doType", "Value=doLogin", ENDITEM,
"Name=userID", "Value={NewParam_6}", ENDITEM, /* 登陆名参数化 */
"Name=password", "Value=qwer1234", ENDITEM,
LAST);
a=lr_eval_string ( "{NewParam_6}" );
lr_log_message("机构 #%s \n",lr_eval_string ( "{NewParam_6}" ));
fprintf(filename,"名字 #%s",a);
lr_think_time(4);
web_submit_data("ActionLogin.jsp_2",
"Action=http://100.10.130.19:7001/Gzip/ActionLogin.jsp",
"Method=POST",
"RecContentType=text/html",
"Referer=http://100.10.130.19:7001/Gzip/ActionLogin.jsp",
"Snapshot=t12.inf",
"Mode=HTML",
ITEMDATA,
"Name=doType", "Value=IntoMain", ENDITEM,
"Name=deptName", "Value=", ENDITEM,
"Name=deptCode", "Value={NewParam_7}", ENDITEM,
EXTRARES,
"Url=css/style.css", ENDITEM,
"Url=images/login_leftbg.gif", "Referer=http://100.10.130.19:7001/Gzip/frame_leftMenu.jsp", ENDITEM,
"Url=images/menuTree/Lplus.gif", "Referer=http://100.10.130.19:7001/Gzip/frame_leftMenu.jsp", ENDITEM,
"Url=images/menuTree/Tminus.gif", "Referer=http://100.10.130.19:7001/Gzip/frame_leftMenu.jsp", ENDITEM,
"Url=images/menuTree/minus.gif", "Referer=http://100.10.130.19:7001/Gzip/frame_leftMenu.jsp", ENDITEM,
"Url=images/menuTree/plus.gif", "Referer=http://100.10.130.19:7001/Gzip/frame_leftMenu.jsp", ENDITEM,
"Url=images/menuTree/Lminus.gif", "Referer=http://100.10.130.19:7001/Gzip/frame_leftMenu.jsp", ENDITEM,
"Url=images/menuTree/Tplus.gif", "Referer=http://100.10.130.19:7001/Gzip/frame_leftMenu.jsp", ENDITEM,
"Url=images/menuTree/blank.gif", "Referer=http://100.10.130.19:7001/Gzip/frame_leftMenu.jsp", ENDITEM,
"Url=images/menuTree/T.gif", "Referer=http://100.10.130.19:7001/Gzip/frame_leftMenu.jsp", ENDITEM,
"Url=images/menuTree/L.gif", "Referer=http://100.10.130.19:7001/Gzip/frame_leftMenu.jsp", ENDITEM,
LAST);
"Url=script/calendar.js", ENDITEM,
"Url=script/slnFildScript.js", ENDITEM,
"Url=dwr/engine.js", ENDITEM,
"Url=dwr/util.js", ENDITEM,
"Url=dwr/interface/AJAXActionServlet.js", ENDITEM,
"Url=dwr/interface/AJAXActionServlet2.js", ENDITEM,
"Url=dwr/interface/KZAJAXActionServlet2.js", ENDITEM,
"Url=dwr/interface/KZAJAXActionServlet.js", ENDITEM,
"Url=dwr/interface/AssessinfmdfD.js", ENDITEM,
"Url=dwr/interface/Ajax4Selects.js", ENDITEM,
"Url=dwr/interface/AjaxClass.js", ENDITEM,
"Url=dwr/interface/SPsnCompensateAdd.js", ENDITEM,
"Url=dwr/interface/AjaxBlkAppointSearchBean.js", ENDITEM,
"Url=dwr/interface/AjaxNatureInfo.js", ENDITEM,
LAST); |
|