我向我的路由器页面(华硕N10)发出请求并遇到一些问题:
page.settings.userName='admin';
page.settings.password='admin';
page.customHeaders={'Authorization': 'Basic '+btoa('admin:admin')};
但在日志中我看到:
= onResourceReceived()
id: 1, stage: "end", response: {"contentType":null,"headers":[],"id":1,"redirectURL":null,"stage":"end","status":401,"statusText":"Authorization Required","time":"2016-05-08T14:09:18.755Z","url":"http://192.168.0.1/"}
这是我的问题:
"statusText":"Authorization Required"
我在使用基本身份验证的tp-link在另一台路由器上尝试过,一切都运行良好。
需要一些帮助)