|
脚本如下,已手工添加了web_set_user,可是在执行还是报错
web_set_user("administrator", "123456", "ip:80");//其中ip为机器的ip
web_url("test",
"URL=http://xxx.xxx.xxx/test",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_find("web_find",
"What=hello",
LAST);
return 0;
错误信息如下:
Action.c(19): Error -26477: both domain and user are needed for NTLM authentication, note: two backslashes are needed, e.g. web_set_user("Domain\\user", "password", "host:port"); [MsgId: MERR-26477]
Action.c(19): Error -26547: Authentication required, please use web_set_user, e.g. web_set_user("domain\\user", "password", "host:port"); [MsgId: MERR-26547]
Action.c(19): Error -26630: HTTP Status-Code=401 (Unauthorized) for "http://xxx.xxx.xxx/test" [MsgId: MERR-26630] |
|