curllib上传文件c/c++

来源:互联网 发布:windows to go怎么用 编辑:程序博客网 时间:2024/05/16 19:32

The simple case is just CURLOPT_POSTFIELDS: http://curl.haxx.se/libcurl/c/http-post.html

If you want to send lots of data, perhaps use a CURLOPT_READFUNCTION callback:http://curl.haxx.se/libcurl/c/post-callback.html

… or if you’re talking about doing a multipart formpost, you want CURLOPT_HTTPPOST:http://curl.haxx.se/libcurl/c/multi-post.html

0 0
原创粉丝点击