Query device on Lan via http, view what is returned?

Hi,

Short:
Is there a way using lua to go to a “website” on my lan and view what is returned?
Say I have a device on my lan that has an http interface and cgi script that will return “THIS IS A TEST”. I want to log into vera remotely, go to the test lua code section and type something is so that vera access the device for me (ie http://192.168.1.2/cgi/test.cgi) and I then see what said device returns (THIS IS A TEST).

Long:
I have an ip camera at a remote location behind a verizon hotspot that does not have a public facing ip. So I can’t port forward my way to the user interface and sadly, Vera no longer provides the option to relay an IP address. That IP camera does allow retrieving/setting parameters via cgi. So since vera is on the lan and I can connect to vera remotely through MIOS, I am hoping there is a way to use lua to view and set the parameters of the camera. Follow up would be to incorporate this into scenes to turn on/off motion detection recording when it is snowing etc.

TIA

Perhaps you can use the luup.inet.wget as in these examples: http://forum.micasaverde.com/index.php?topic=29630.0

See this page for more information: http://wiki.micasaverde.com/index.php/Luup_Lua_extensions#function:_wget

Note that it returns 3 variables, the second of which is the returned data. You can use this in your scene code.

See if Rigpapa’s plugin will help >> http://forum.micasaverde.com/index.php/topic,50440.0.html