How do I do a HTTP POST with Vera?

Hi everyone,

I use Vera and have Indigo as well. I’m trying to do a web URL to trigger a variable on the Indigo but unsuccessfully. I don’t have the URL open right now but it’s something like http://username:password@indigoip/variables/sMotion&=true. I know that’s wrong but URL doesn’t matter. If I put that in a browser window, my iPhone etc, the variable updates on the Indigo to say true.

I found this thread http://forum.micasaverde.com/index.php?topic=11745.0 and I tried doing:

local http = require(“socket.http”)
http.TIMEOUT = 5
result, status = http.request(“http://username:password@indigoip/variables/sMotion&=true”)

That was under a Scene in Vera UI5 with that as LUUP code. Thanks!

Have you tried curl?

something like this…

os.execute("curl -X POST -d @filename.txt http://example.com/path/to/resource --header “Content-Type:application/json”)