MissiaL / hikvision-client

Client for Hikvision devices
MIT License
209 stars 43 forks source link

user add #23

Open igorvukotic opened 3 years ago

igorvukotic commented 3 years ago

I'm trying to add users but i get 403

requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: http://1.1.1.1:80/ISAPI/System/Security/users

And this is from documentation ( works with curl )

POST /ISAPI/Security/users HTTP/1.1 Host: 10.17.132.49 Content-Length: 335 Connec on: Keep-Alive Authoriza on: Digest username="admin", realm="DS-2CD2F12FWD-IWS", nonce="4e6a4d774d6a63304f544936593255335a474d334f54673d", uri="/ISAPI/Security/users", cnonce="178e14d4977c835db891b5392b5d0a67", nc=00000015, response="d92518 00cd2772cf212f5326b251be", qop="auth" <?xml version="1.0" encoding="UTF-8"?>

0 test 1qaz2wsx 1 0.0.0.0 :: Operator false HTTP/1.1 200 OK Date: Tue, 14 Mar 2017 20:24:31 GMT Server: App-webs/ Connec on: close Content-Length: 288 Content-Type: applica on/xml /ISAPI/Security/users 1 OK 2 ok