Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

curl_slist_append(3) [mojave man page]

curl_slist_append(3)						  libcurl Manual					      curl_slist_append(3)

NAME
curl_slist_append - add a string to an slist SYNOPSIS
#include <curl/curl.h> struct curl_slist *curl_slist_append(struct curl_slist *list, const char * string); DESCRIPTION
curl_slist_append() appends a specified string to a linked list of strings. The existing list should be passed as the first argument while the new list is returned from this function. The specified string has been appended when this function returns. curl_slist_append() copies the string. The list should be freed again (after usage) with curl_slist_free_all(3). RETURN VALUE
A null pointer is returned if anything went wrong, otherwise the new list pointer is returned. EXAMPLE
CURL handle; struct curl_slist *slist=NULL; slist = curl_slist_append(slist, "pragma:"); if (slist == NULL) return -1; curl_easy_setopt(handle, CURLOPT_HTTPHEADER, slist); curl_easy_perform(handle); curl_slist_free_all(slist); /* free the list again */ SEE ALSO
curl_slist_free_all(3), libcurl 7.54.0 May 02, 2016 curl_slist_append(3)

Check Out this Related Man Page

CURLINFO_SSL_ENGINES(3) 				     curl_easy_getinfo options					   CURLINFO_SSL_ENGINES(3)

NAME
CURLINFO_SSL_ENGINES - get an slist of OpenSSL crypto-engines SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_SSL_ENGINES, struct curl_slist **engine_list); DESCRIPTION
Pass the address of a 'struct curl_slist *' to receive a linked-list of OpenSSL crypto-engines supported. Note that engines are normally implemented in separate dynamic libraries. Hence not all the returned engines may be available at run-time. NOTE: you must call curl_slist_free_all(3) on the list pointer once you're done with it, as libcurl will not free the data for you. PROTOCOLS
All TLS based ones. EXAMPLE
TODO AVAILABILITY
Added in 7.12.3. Available in OpenSSL builds with "engine" support. RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not. SEE ALSO
curl_easy_getinfo(3), curl_easy_setopt(3), libcurl 7.54.0 February 03, 2016 CURLINFO_SSL_ENGINES(3)
Man Page