Hi everyone,
I have a network camera DS-2CD2185FWD-IS and it works absolutely fine !!!
I want to be able to reboot the cam from my ubuntu pc with a "curl"-command, but the result is every time: error 401 = no permission.
So I've installed the tool "httpie" on the ubuntu (which is similar to "curl").
This is my command:
"http --auth test2:Asdf1234 --auth-type digest PUT http://192.168.178.251/System/reboot --verbose"
And this is the result:
PUT /System/reboot HTTP/1.1
Accept: /
Accept-Encoding: gzip, deflate
Authorization: Basic dGVzdDI6QXNkZjEyMzQ=
Connection: keep-alive
Content-Length: 0
Host: 192.168.178.251
User-Agent: HTTPie/0.9.8
HTTP/1.1 401 Unauthorized
Connection: keep-alive
Content-Length: 260
Content-Type: text/html
Date: Fri, 01 May 2020 10:22:42 GMT
Keep-Alive: timeout=8, max=99
Server: webserver
WWW-Authenticate: Digest qop="auth", realm="IP Camera(D0993)", nonce="4e6a6b32597a5a6a5a57493659325a6a4d6a67784d7a513d", stale="FALSE"
WWW-Authenticate: Basic realm="IP Camera(D0993)"
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
<!DOCTYPE html>
<html><head><title>Document Error: Unauthorized</title></head>
<body><h2>Access Error: 401 -- Unauthorized</h2>
<p>Authentication Error: Your client does not have permission to get URL /System/reboot from this server.</p>
</body>
</html>
Could you please tell my what's wrong ?!?!?!?
Thanks a lot for your help and with best regards,
Matthias
I have a network camera DS-2CD2185FWD-IS and it works absolutely fine !!!

I want to be able to reboot the cam from my ubuntu pc with a "curl"-command, but the result is every time: error 401 = no permission.
So I've installed the tool "httpie" on the ubuntu (which is similar to "curl").
This is my command:
"http --auth test2:Asdf1234 --auth-type digest PUT http://192.168.178.251/System/reboot --verbose"
And this is the result:
PUT /System/reboot HTTP/1.1
Accept: /
Accept-Encoding: gzip, deflate
Authorization: Basic dGVzdDI6QXNkZjEyMzQ=
Connection: keep-alive
Content-Length: 0
Host: 192.168.178.251
User-Agent: HTTPie/0.9.8
HTTP/1.1 401 Unauthorized
Connection: keep-alive
Content-Length: 260
Content-Type: text/html
Date: Fri, 01 May 2020 10:22:42 GMT
Keep-Alive: timeout=8, max=99
Server: webserver
WWW-Authenticate: Digest qop="auth", realm="IP Camera(D0993)", nonce="4e6a6b32597a5a6a5a57493659325a6a4d6a67784d7a513d", stale="FALSE"
WWW-Authenticate: Basic realm="IP Camera(D0993)"
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
<!DOCTYPE html>
<html><head><title>Document Error: Unauthorized</title></head>
<body><h2>Access Error: 401 -- Unauthorized</h2>
<p>Authentication Error: Your client does not have permission to get URL /System/reboot from this server.</p>
</body>
</html>
Could you please tell my what's wrong ?!?!?!?
Thanks a lot for your help and with best regards,
Matthias