25.07.2025, 08:25
(25.07.2025, 06:44)admin Wrote: It works in browser because you are already authenticated.
Change url variable as needed, run this script once and post what you get in Logs tab:
Code:url = 'http://USER:PASS@CAM_IP...'
res, err, hdrs = require('socket.http').request(url)
log(res, err, hdrs)
Here is what I got.
Code:
* arg: 1
* nil
* arg: 2
* string: host not found
* arg: 3
* nil