One of the things I want to do is have a button that when clicked will turn a light on or off.
I already have a measure that gets the current state of the light (HTTP GET from a REST API), but I'm struggling with how to do an HTTP POST or PUT to change the state of the light.
Possible approaches I have considered:
1) Using WebParser - problem is I can't see any way to set the request method to POST
2) Lua script - according to the docs 'require' is not supported, so I don't know how to get http support in Lua
3) Custom plugin - I hoped there might already be one

I'm not afraid of writing a bit of C++ if that's what it takes, but I'd prefer not to.
Any suggestions or hints would be appreciated.