This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

WebCGI Trigger
#7
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
Reply


Messages In This Thread
WebCGI Trigger - by JXA - 10.01.2020, 22:21
RE: WebCGI Trigger - by Joep - 11.01.2020, 12:30
RE: WebCGI Trigger - by JXA - 12.01.2020, 20:50
RE: WebCGI Trigger - by JXA - 14.01.2020, 13:49
RE: WebCGI Trigger - by admin - 14.01.2020, 13:52
RE: WebCGI Trigger - by JXA - 14.01.2020, 20:53
RE: WebCGI Trigger - by admin - 15.01.2020, 08:40

Forum Jump: