|
代码如下:一直报错 ,我应该该填的都填了啊,实在搞不明白为什么会报错了
web_custom_request("login",
"URL=http://www.easyerpower.com/xyyc/login",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=http://www.easyerpower.com/",
"Snapshot=t2.inf",
"Mode=HTML",
"EncType=application/json;charset=utf-8",
"Body={\"mobile\":\"13896118891\",\"password\":\"123456\",\"type\":\"2\"}",
LAST);
web_set_user("183.230.40.220\\13896118891",
lr_decrypt("E10ADC3949BA59ABBE56E057F20F883E"),
"easyerpower:10001");
web_custom_request("menus",
"URL=http://www.easyerpower.com/xyyc/menus",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=http://www.easyerpower.com/",
"Snapshot=t3.inf",
"Mode=HTML",
"EncType=",
LAST);
web_url("dashboard.html",
"URL=http://www.easyerpower.com/templates/dashboard/dashboard.html",
"Resource=0",
"Referer=http://www.easyerpower.com/",
"Mode=HTML",
LAST);
报错部分如下:
Action.c(78): Error -26547: Authentication required, please use web_set_user, e.g. web_set_user("domain\\user", "password", "host:port"); [MsgId: MERR-26547]
Action.c(78): Error -26630: HTTP Status-Code=401 (Unauthorized) for "http://www.easyerpower.com/xyyc/menus" [MsgId: MERR-26630]
Action.c(78): web_custom_request("menus") highest severity level was "ERROR", 39 body bytes, 186 header bytes, 11 chunking overhead bytes [MsgId: MMSG-26387]
|
|