root@pve:~/test# wget --user=admin --password=pass1234 http://10.2.33.37/startup-config.txt
--2018-07-18 19:55:35-- http://10.2.33.37/startup-config.txt
Connecting to 10.2.33.37:80... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Authentication selected: Digest realm="ZyXEL Keenetic III", nonce="0h1PWz+QkxbKqcViq2f0E91ITtF7nVWN", qop="auth"
Reusing existing connection to 10.2.33.37:80.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: /error.html?code=404&ref=%2Fstartup-config.txt [following]
--2018-07-18 19:55:36-- http://10.2.33.37/error.html?code=404&ref=%2Fstartup-config.txt
Reusing existing connection to 10.2.33.37:80.
HTTP request sent, awaiting response... 401 Unauthorized
Authentication selected: Digest realm="ZyXEL Keenetic III", nonce="0h1PW0LAaVUzblFgCNYAoVWJxzMyrtdu", qop="auth"
Reusing existing connection to 10.2.33.37:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘startup-config.txt’
startup-config.txt [ <=> ] 938 --.-KB/s in 0s
2018-07-18 19:55:36 (160 MB/s) - ‘startup-config.txt’ saved [938]
root@pve:~/test# cat startup-config.txt
<!DOCTYPE html>
<html><head>
<meta charset="utf-8"/>
<title></title>
<script>
var s = location.search.substr(1),
query = {};
if (s) {
var a = s.split('&');
for (var i = 0; i < a.length; ++i) {
var l = a[i].split('=');
query[l[0]] = decodeURIComponent(l[1]);
}
}
var start = /^\/[A-Z]{2}\/([a-z0-9_-]*)\.html(.*)$/.exec(query.ref);
if (start && query.ref) {
var ref = query.ref.split('?'),
ref_query = {},
a = (ref[1] || '').split('&');
for (var i = 0; i < a.length; ++i) {
var l = a[i].split('=');
ref_query[l[0]] = decodeURIComponent(l[1]);
}
location.replace('/#'+start[1]+'/back='+encodeURIComponent(ref_query.back));
} else {
var redir = /^\/([A-Z]{2})\/([a-z0-9_-]*)\/([a-z0-9_-]*)\.html(.*)$/.exec(query.ref);
if (redir)
window.localStorage.l10n_lang = redir[1];
location.replace(redir && query.code == '404' ? '/#'+redir[2]+'.'+redir[3] : '/#error/'+s);
}
</script></head><body></body></html>