![]() |
yumapro
25.10-1
YumaPro SDK
|
libcurl is used to support the NETCONF :url capability. More...

Functions | |
| void | agt_curl_init (void) |
| Iniitial the libcurl API. More... | |
| void | agt_curl_cleanup (void) |
| Cleanup the libcurl API. More... | |
| status_t | agt_curl_get (const xmlChar *urlspec, const xmlChar *savespec) |
| GET some file via libcurl. More... | |
| status_t | agt_curl_put (const xmlChar *urlspec, const xmlChar *srcspec) |
| PUT some file via libcurl. More... | |
libcurl is used to support the NETCONF :url capability.
Currently the file, ftp, and tftp schemes are supported.
| void agt_curl_cleanup | ( | void | ) |
Cleanup the libcurl API.
Called by the server during shutdown
| status_t agt_curl_get | ( | const xmlChar * | urlspec, |
| const xmlChar * | savespec | ||
| ) |
GET some file via libcurl.
| urlspec | the URL to retrieve. The scheme needs to be in the URL and needs to be supported and enabled in the server. |
| savespec | name of file location to store the results of the GET. |
| void agt_curl_init | ( | void | ) |
Iniitial the libcurl API.
Called by the server during boot-time
| status_t agt_curl_put | ( | const xmlChar * | urlspec, |
| const xmlChar * | srcspec | ||
| ) |
PUT some file via libcurl.
| urlspec | the URL to use for PUT. The scheme needs to be in the URL and needs to be supported and enabled in the server. |
| srcspec | name of file that contains the data to send in the PUT operation |