yumapro  20.10-14
YumaPro SDK
libcurl Support

libcurl is used to support the NETCONF :url capability. More...

Collaboration diagram for libcurl Support:

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...
 

Detailed Description

libcurl is used to support the NETCONF :url capability.

Currently the file, ftp, and tftp schemes are supported.

Function Documentation

◆ agt_curl_cleanup()

void agt_curl_cleanup ( void  )

Cleanup the libcurl API.

Called by the server during shutdown

◆ agt_curl_get()

status_t agt_curl_get ( const xmlChar *  urlspec,
const xmlChar *  savespec 
)

GET some file via libcurl.

Parameters
urlspecthe URL to retrieve. The scheme needs to be in the URL and needs to be supported and enabled in the server.
savespecname of file location to store the results of the GET.
Returns
status

◆ agt_curl_init()

void agt_curl_init ( void  )

Iniitial the libcurl API.

Called by the server during boot-time

◆ agt_curl_put()

status_t agt_curl_put ( const xmlChar *  urlspec,
const xmlChar *  srcspec 
)

PUT some file via libcurl.

Parameters
urlspecthe URL to use for PUT. The scheme needs to be in the URL and needs to be supported and enabled in the server.
srcspecname of file that contains the data to send in the PUT operation
Returns
status