03.02.2025, 06:53
Log what webrequest and ftp.put return:
Code:
webrequest = require('webrequest')
data, err = webrequest('general', 'backup', { password = '123456' })
log(type(data) == 'string' and #data or 'error', err)
res, err = ftp.put({
host = host,
user = user,
password = pass,
argument = path,
source = ltn12.source.string(data)
})
log(res, err)