Website login using POST

I’m trying to work out how to write a plugin to log on to a webserver which requires its authentication using POST. I’ve tried using http.request, which should (I think!) work, but doesn’t. I’ve tried running this on a PC so that I can easily capture what’s happening with Wireshark, and I simply can’t get Lua to send out the correct packets.

Has anyone tried this, and is there any example source code available.

Thanks
Chrius

Hi,

The automator.app plugin uses HTTP post to send push notifications. It’s detailed here: http://push.automatorapp.com/

You should be able to copy that code into what you need.

Thanks for the response. This is actually what I’ve tried (I found similar code online), but your confirmation that it works for you is very useful in that it pretty much confirms my problem is with the unit I’m trying to control.

With a bit of bodging, I’ve got some Lua code that now sends SNMP messages to control some relays on the board, so I’ll hopefully get that running on the Vera tonight.