I'm trying to set day/night modes on my new Empire Tech
IPC-Color4K-T/Dahua DH-IPC-HDW5849HP-ASE-LED running Dahua branded firmware.
I'm getting stuck with wget authentication issues.
Has anyone gotten wget to authenticate to this camera? Here are the details and debug info:
C:\Program Files (x86)\GnuWin32\bin>
wget -d --user admin --password obscured! ""
C:\Program Files (x86)\GnuWin32\bin>wget -d --user admin --password obscured! "
"
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\Program Files (x86)\GnuWin32/etc/wgetrc
Setting --user (user) to admin
Setting --password (password) to obscured!
DEBUG output created by Wget 1.11.4 on Windows-MinGW.
--2022-12-18 12:38:04--
Host `192.168.1.247' has not issued a general basic challenge.
seconds 0.00, Connecting to 192.168.1.247:80... seconds 0.00, connected.
Created socket 440.
Releasing 0x01058c10 (new refcount 0).
Deleting unused 0x01058c10.
---request begin---
GET /cgi-bin/configManager.cgi?action=setConfig&VideoInOptions[].NightOptions.SwitchMode=1&VideoInOptions[].NightOptions.DayNightColor=0 HTTP/1.0
User-Agent: Wget/1.11.4
Accept:
/
Host: 192.168.1.247
Connection: Keep-Alive
---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Digest realm="Login to 104b38735a49387a0225714e54110f5f", qop="auth", nonce="2005133106", opaque="7b07fb92c508a1c0c0e1373f90b552ca72291fd2"
Connection: close
CONTENT-LENGTH: 0
---response end---
401 Unauthorized
Closed fd 440
seconds 0.00, Connecting to 192.168.1.247:80... seconds 0.00, connected.
Created socket 448.
Releasing 0x010591e0 (new refcount 0).
Deleting unused 0x010591e0.
---request begin---
GET /cgi-bin/configManager.cgi?action=setConfig&VideoInOptions[].NightOptions.SwitchMode=1&VideoInOptions[].NightOptions.DayNightColor=0 HTTP/1.0
User-Agent: Wget/1.11.4
Accept:
/
Host: 192.168.1.247
Connection: Keep-Alive
Authorization: Digest username="admin", realm="Login to 104b38735a49387a0225714e54110f5f", nonce="2005133106", uri="/cgi-bin/configManager.cgi?action=setConfig&VideoInOptions[].NightOptions.SwitchMode=1&VideoInOptions[].NightOptions.DayNightColor=0", response="d1580426f2555419ec21ff39818412c8", opaque="7b07fb92c508a1c0c0e1373f90b552ca72291fd2"
---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 401 Unauthorized
Connection: close
Content-type: text/plain;charset=utf-8
Content-Length: 27
---response end---
401 Unauthorized
Closed fd 448
Authorization failed.
C:\Program Files (x86)\GnuWin32\bin>
---end---