Function devices.system.CustomCGI(): Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
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 | <i>nil</i> <b>devices.system.CustomCGI</b>(<i>table</i> <code>config</code>) | ||
=== Parameters === | === Parameters === | ||
<i>table</i> < | <i>table</i> config{<code>url</code>} | ||
* <i>string</i> < | * <i>string</i> <code>url</code> address to call | ||
=== Return value === | === Return value === | ||
Latest revision as of 17:24, 5 May 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(table config)
Parameters
table config{url}
- string
urladdress 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