Please show me how to make post of big text data with curllib? I want to make it not using parameters like &data=”some big text”, but using POST body;
Thank you very much!!!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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