lua:curl_example
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
lua:curl_example [2023/10/26 14:16] – [Writing some file onto WebHMI filesystem] emozolyak | lua:curl_example [2024/01/18 12:58] (current) – atolstov | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Getting some data from WebHMI itself using API ====== | ||
+ | |||
<code lua> | <code lua> | ||
- | | + | local res = "" |
local c = cURL.easy_init() | local c = cURL.easy_init() | ||
c:setopt{ url = ' | c:setopt{ url = ' | ||
Line 12: | Line 14: | ||
} | } | ||
| | ||
- | local res = "" | + | |
c: | c: | ||
res = res .. str | res = res .. str |
lua/curl_example.1698329766.txt.gz · Last modified: 2023/10/26 14:16 by emozolyak