Function devices.system.CustomCGI(): Difference between revisions

From wiki.netio-products.com
Jump to navigation Jump to search
Založena nová stránka s textem „{{DISPLAYTITLE:function devices.system.CustomCGI()}} Execute HTTP GET call to given url. The call is one-way only. To read the HTTP response, use cgiGet().…“
 
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:function devices.system.CustomCGI()}}
{{DISPLAYTITLE:function devices.system.CustomCGI()}}
Execute HTTP GET call to given url. The call is one-way only. To read the HTTP response, use cgiGet().
Execute HTTP GET call to given url. The call is one-way only. To read the HTTP response, use [[CgiGet()]].


  <i>nil</i> devices.system.CustomCGI{<u>config</u>}
  <i>nil</i> devices.system.CustomCGI{<u>config</u>}
Line 17: Line 17:


=== See also ===
=== See also ===
* [[Function devices.system.ResetOut()|devices.system.ResetOut()]] to conveniently reset the state
* [[CgiGet()]] to send HTTP request and handle HTTP response


__NOTOC__
__NOTOC__

Revision as of 12: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