29.09.2020, 11:38
Try this:
Code:
http = require('socket.http')
url = 'http://192.168.AAA.BBB/cgi-bin/api.cgi?cmd=Login&token=null'
data = '[{"cmd":"Login","action":0,"param":{"User":{"userName":"admin","password":"abcdefg"}}}]'
res, err = http.request(url, data)
log(res, err)