Hi guys!
I'm trying to access Dahua API over wget/curl/php (file_get_contents) and receive auth error:
-----
[root@live02 ~]# wget -O- http://admin:password@1.2.3.4:80/cgi-bin/snapshot.cgi
--2017-07-24 13:42:28-- http://admin:*password*@1.2.3.4:80/cgi-bin/snapshot.cgi
Connecting to 1.2.3.4:80... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Connecting to 1.2.3.4:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 45 [text/plain]
Saving to: `STDOUT'
0% [ ] 0 --.-K/s Error
ErrorID=0, Detail=Invalid Authority!
100%[=========================================================================================>] 45 --.-K/s in 0s
2017-07-24 13:42:28 (7.07 MB/s) - written to stdout [45/45]
-----
Option "-d" does nothing. But in browser all seems to be ok.
Any thoughts?
Thanks.
I'm trying to access Dahua API over wget/curl/php (file_get_contents) and receive auth error:
-----
[root@live02 ~]# wget -O- http://admin:password@1.2.3.4:80/cgi-bin/snapshot.cgi
--2017-07-24 13:42:28-- http://admin:*password*@1.2.3.4:80/cgi-bin/snapshot.cgi
Connecting to 1.2.3.4:80... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Connecting to 1.2.3.4:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 45 [text/plain]
Saving to: `STDOUT'
0% [ ] 0 --.-K/s Error
ErrorID=0, Detail=Invalid Authority!
100%[=========================================================================================>] 45 --.-K/s in 0s
2017-07-24 13:42:28 (7.07 MB/s) - written to stdout [45/45]
-----
Option "-d" does nothing. But in browser all seems to be ok.
Any thoughts?
Thanks.