首页 > Web开发 > 详细

liburl常见库函数解释

时间:2019-06-17 22:31:29      阅读:118      评论:0      收藏:0      [点我收藏+]

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

 

liburl常见库函数解释

原文:https://www.cnblogs.com/liuzhenbo/p/11042515.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!