curllib上传文件c/c++

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

你可能感兴趣的:(curllib上传文件c/c++)