Problem with downloading image from BCS camera - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: Problem with downloading image from BCS camera (/showthread.php?tid=2987) |
Problem with downloading image from BCS camera - buuuudzik - 17.11.2020 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/showthread.php?tid=1061&pid=9364#pid9364 |