|
已经困扰了我好几天的问题
Action.c(92): Error -26547: Authentication required, please use web_set_user, e.g. web_set_user("domain\\user", "password", "host:port"); [MsgId: MERR-26547]
Action.c(92): Error -26630: HTTP Status-Code=401 (Unauthorized) for "http://10.250.1.10:10008/aps-app/App/rpc/appLoaderServer" [MsgId: MERR-26630]
Action.c(92): web_custom_request("appLoaderServer") highest severity level was "ERROR", 380 body bytes, 207 header bytes, 17 chunking overhead bytes [MsgId: MMSG-26387]
但录制出来代码中并不是没有登录,之前录制出来全部好好的只需要加头信息就能正常回放,不知道为何现在录制出来都报此错误。双击错误对应的代码部分:
web_custom_request("appLoaderServer",
"URL=http://10.250.1.10:10008/aps-app/App/rpc/appLoaderServer",
"Method=POST",
"TargetFrame=",
"Resource=0",
"RecContentType=application/json",
"Referer=http://10.250.1.10:10008/aps-app/",
"Snapshot=t79.inf",
"Mode=HTML",
"EncType=text/x-gwt-rpc; charset=utf-8",
"Body=7|0|4|http://10.250.1.10:10008/aps-app/App/|86307D5B0328CA7934189304A4F2593A|com.allinfinance.aps.app.client.AppLoaderInter|getClientContext|1|2|3|4|0|",
LAST);
登录部分:
web_submit_data("login;jsessionid=F91346E8267D9EC8DC2DBC0ADE34DCEC",
"Action=https://10.250.1.10:20021/cas-app/login;jsessionid={PeopleSoftJSessionID2}?service=http%3A%2F%2F10.250.1.10%3A10008%2Faps-app%2Fj_spring_cas_security_check%3Bjsessionid%3DD4B6D289F58A614999E8F2C90EA94884",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=",
"Snapshot=t78.inf",
"Mode=HTML",
ITEMDATA,
"Name=org", "Value=000005247410", ENDITEM,
"Name=username", "Value=liuzy", ENDITEM,
"Name=password", "Value=33333333", ENDITEM,
"Name=lt", "Value=LT-95-O0a2EJPU5ZxzMeOxAtfqbdbxed3ntQ", ENDITEM,
"Name=execution", "Value=e1s1", ENDITEM,
"Name=_eventId", "Value=submit", ENDITEM,
"Name=submit.x", "Value=52", ENDITEM,
"Name=submit.y", "Value=19", ENDITEM, |
|