01.07.2022, 05:58
Like this:
Code:
http = require('socket.http')
mime = require('mime')
result = http.request({
url = 'https://*.*.*.*/scada-remote?m=json&r=grp&fn=getvalue&alias=62/7/30',
headers = {
Authorization = 'Basic ' .. mime.b64('remote:P@s0ord')
}
})
log(result)