Dahua Ip camera snapshot url

Moderator: leecollings

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

Re: Dahua Ip camera snapshot url

Post by lukaskupasz »

Hello,
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:[email protected]/ ... shot.cgi?1
http://username:[email protected]/ ... shot.cgi?0
http://xxx:[email protected]/cgi-bin/sn ... 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
Rainman
Posts: 10
Joined: Monday 18 April 2016 12:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.9700
Contact:

Re: Dahua Ip camera snapshot url

Post by Rainman »

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" "http://192.168.1.108/cgi-bin/snapshot.cgi?1" --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 1 guest