Release Surveillance Room - Your IP Camera Companion with extra Foscam HD Support
(2018-04-07, 22:25)thestig Wrote: In recent firmwares, Amcrest's API only responds to HTTP Digest auth.  For example, the command
curl "http://<username>:<password>@<camera ip>:80/cgi-bin/snapshot.cgi?1 
used to return just fine.  Now, you'd have to do 'curl --digest' in order to gain access. 
Huh that's weird... are you totally sure it *requires* digest auth??
According to the latest (rev 2.12) cgi API, it still accepts Basic.
https://support.amcrest.com/hc/en-us/art...TP-API-SDK
Quote:3.5 Authentication
Video products support either basic authentication or digest authentication. If the http request does not provide valid
“Authorization” information, video products would return HTTP status code 401 and information for authentication. Video
products return the required resource only if authorization correct. 

It seems like it only uses Digest as a failover after Basic doesn't work?
I'm definitely no expect on any of this at all, so I just thought I'd throw that in. 
But also noteworthy in that pdf, the URL for snapshot seems to require more(/less) parameter info than you suggested -- check out section 4.4.2.

Just out of curiosity, what headers does...
curl -I "http://USERNAME:[email protected]/cgi-bin/snapshot.cgi"
...or...
curl -I "http://USERNAME:[email protected]/cgi-bin/snapshot.cgi?channel=1"
return?
(as sort of suggested in this https://zindilis.com/blog/2012/08/15/log...ython.html)
Reply


Messages In This Thread
All Cameras - by zaxcom - 2016-08-25, 03:17
Axis M211 - by OnkelKraecker - 2017-03-08, 13:36
RE: Axis M211 - by jinux - 2017-03-08, 14:43
Axis M 211 - by OnkelKraecker - 2017-10-13, 12:57
RE: Axis M 211 - by maikito26 - 2018-01-24, 15:00
RE: Surveillance Room - Your IP Camera Companion with extra Foscam HD Support - by jasonbuechler - 2018-04-09, 20:44


Logout Mark Read Team Forum Stats Members Help
Surveillance Room - Your IP Camera Companion with extra Foscam HD Support7
This forum uses Lukasz Tkacz MyBB addons.