liburl常见库函数解释

curl_slist_append - add a string to an slist(单链表)

struct curl_slist *headerlist=NULL;
static const char buf[] = "Expect:"
headerlist = curl_slist_append(headerlist, buf);

 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_HTTPHEADER, struct curl_slist *headers);

官方说明:Pass a pointer to a linked list of HTTP headers to pass to the server and/or proxy in your HTTP request.

 

 

 

curl_formadd

 CURLcode curl_easy_setopt(CURL *handle, CURLOPT_HTTPPOST,   struct curl_httppost *formpost);

CURLOPT_HTTPPOST explained:CURLOPT_HTTPPOST - specify the multipart formpost content

 

posted @ 2019-06-17 22:09  心田居士  阅读(375)  评论(0编辑  收藏  举报