25.06.2020, 16:06
I thnik I'm not using a simple form...
I have to integrate as body '{"time":"2020-06-09 16:27:36"}' for a REST process, in the following lines.
local res, err = http.request({
url = url,
method = 'POST',
-- protocol = 'tlsv12' -- only for old LM firmware
headers = headers,
sink = ltn12.sink.table(resp),
source = ltn12.source.string(data)
})
I have to integrate as body '{"time":"2020-06-09 16:27:36"}' for a REST process, in the following lines.
local res, err = http.request({
url = url,
method = 'POST',
-- protocol = 'tlsv12' -- only for old LM firmware
headers = headers,
sink = ltn12.sink.table(resp),
source = ltn12.source.string(data)
})