Today, 06:29
Since you need to pass true or false depending on the the event script value you can simply do it like this:
Code:
value = tostring(event.getvalue())
url = 'http://admin:xxxxxx@10.0.100.10/cgi-bin/configManager.cgi?action=setConfig&Encode%5b0%5d.MainFormat%5b0%5d.VideoEnable=' .. value .. '&Encode%5b0%5d.ExtraFormat%5b0%5d.VideoEnable=' .. value
res, err, hdrs = request(url)