I have some problem with downloading image from BCS cameras.
In older BCS camers such linked worked very well:
http://IP/cgi-bin/snapshot.cgi?chn=2&u=USER&p=PASS
I am using such links which worked very well with older BCS cameras:
Link1: http://IP/cgi-bin/snapshot.cgi?chn=2&u=USER&p=PASS
Link2: http://USER:PASS@IP/cgi-bin/snapshot.cgi?chn=2
Link3: http://USER:PASS@IP/cgi-bin/snapshot.cgi?chn=2&u=USER&p=PASS
When I try download image then I have an error 401 (Not authorized)
local image, err = socket.http.request(link)
Link 2 and 3 works fine in browser.
How can I solve this?
This was the solution (digest auth):
https://forum.logicmachine.net/showthrea...64#pid9364
In older BCS camers such linked worked very well:
http://IP/cgi-bin/snapshot.cgi?chn=2&u=USER&p=PASS
I am using such links which worked very well with older BCS cameras:
Link1: http://IP/cgi-bin/snapshot.cgi?chn=2&u=USER&p=PASS
Link2: http://USER:PASS@IP/cgi-bin/snapshot.cgi?chn=2
Link3: http://USER:PASS@IP/cgi-bin/snapshot.cgi?chn=2&u=USER&p=PASS
When I try download image then I have an error 401 (Not authorized)
local image, err = socket.http.request(link)
Link 2 and 3 works fine in browser.
How can I solve this?
This was the solution (digest auth):
https://forum.logicmachine.net/showthrea...64#pid9364
Done is better than perfect