Dahua Ip camera snapshot url

Posts: 1
Joined: Wednesday 06 June 2018 14:09
Target OS: Windows
Domoticz version:

Re: Dahua Ip camera snapshot url

Post by lukaskupasz » Wednesday 04 July 2018 9:52

I have Dahua camara model DH-IPC-HFW1320SN-W-0280B.

My problem is when I try to get an snapshot in C# application,
using URL:

because I get the 401 error (Unauthorized).

I already try with this ways:
http://username:password@ ... shot.cgi?1
http://username:password@ ... shot.cgi?0
http://xxx:xxx@ ... ginpas=xxx

When I try in firefox with user and pass included in the URL, the camera still ask for user and pass. I think this maybe can be the error in C# application.

I need the URL including user and pass thats works

Thanks in advance

Posts: 4
Joined: Monday 18 April 2016 12:40
Target OS: Raspberry Pi
Domoticz version: 4.9700

Re: Dahua Ip camera snapshot url

Post by Rainman » Wednesday 04 July 2018 15:11

In C# I think you have to figure out how to pass 'digest' authentication.

In bash I use this on some of the newer camera's to get a snapshot;

Code: Select all

curl --user "user:pass" "" --digest -o "\var\tmp\snapshot.jpg" -s
Maybe this helps;
https://stackoverflow.com/questions/30 ... arameters

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests