Difference between revisions of "Function devices.system.CustomCGI()"

From wiki.netio-products.com
Jump to navigation Jump to search
Line 7: Line 7:
 
  <i>table</i> <u>config</u>
 
  <i>table</i> <u>config</u>
 
* <i>string</i> <u>url</u> address to call
 
* <i>string</i> <u>url</u> address to call
 
  
 
=== Return value ===
 
=== Return value ===

Revision as of 14:38, 18 April 2017

Execute HTTP GET call to given url. The call is one-way only. To read the HTTP response, use CgiGet().

nil devices.system.CustomCGI{config}

Parameters

table config
  • string url address to call

Return value

nil

Usage

-- sends HTTP GET request
devices.system.CustomCGI{url="http://192.168.0.1/handler.cgi?outlet=1&state=0"}

See also

  • CgiGet() to send HTTP request and handle HTTP response