This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Problem with downloading image from BCS camera
#1
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
Done is better than perfect
Reply


Forum Jump: