curl_slist_appendSection: libcurl Manual (3)Updated: 19 Jun 2003 |
curl_slist_appendSection: libcurl Manual (3)Updated: 19 Jun 2003 |
struct curl_slist *curl_slist_append(struct curl_slist *list, const char * string);
The list should be freed again (after usage) with curl_slist_free_all(3).
slist = curl_slist_append(slist, "pragma:");
curl_easy_setopt(handle, CURLOPT_HTTPHEADER, slist);
curl_easy_perform(handle);
curl_slist_free_all(slist); /* free the list again */