How to use CGI
Posted: Saturday 06 February 2016 11:13
'
Hi,
I have a device (camera Foscam FI9821w v2 to be exact), from which the status can be queried by executing a CGI command:
a webpage is opened which shows the status, eg.:
I am looking for a way to use this info in LUA.
Anyone know how to do it ?
A short example / guide would be helpfull.
Thanks, Mark
Hi,
I have a device (camera Foscam FI9821w v2 to be exact), from which the status can be queried by executing a CGI command:
Code: Select all
http://192.168.1.2/cgi-bin/CGIProxy.fcgi&usr=admin&pwd=123&cmd=ABC
a webpage is opened which shows the status, eg.:
Code: Select all
<CGI_Result>
<result>0</result>
<isDHCP>1</isDHCP>
<ip>192.168.1.8</ip>
<gate>0.0.0.0</gate>
<mask>255.255.255.0</mask>
</CGI_Result>
I am looking for a way to use this info in LUA.
Anyone know how to do it ?
A short example / guide would be helpfull.
Thanks, Mark