15.01.2020, 08:40
If using an event script you can use event.getvalue() to add current value to content variable. Use socket.url.escape to convert spaces and other characters to correct escape sequences.
Code:
require('socket.url')
value = event.getvalue()
content = 'Input status is ' .. tostring(value)
content = socket.url.escape(content)
qs = '/cgi/WebCGI?1500101=account=apiuser&password=password&port=1&destination=15880270900&content=' .. content