![]() |
|
![]() |
|
cURL ![]() ![]() ![]() curlpp mailing list Archives
[cURLpp] PostFieldSize in curlpp/libcurl
From: Piotr Dobrogost <curlpp_at_2008.autoera.pl>
Date: Mon, 17 Nov 2008 20:23:51 +0100
Jean
In example 12 you have this
request.setOpt(new cURLpp::Options::PostFields("abcd"));
And do you know why in libcurl's tutorial (http://curl.haxx.se/libcurl/c/libcurl-tutorial.html) in this example
struct curl_slist *headers=NULL; headers = curl_slist_append(headers, "Content-Type: text/xml");
/* post binary data */ curl_easy_setopt(easyhandle, CURLOPT_POSTFIELDS, binaryptr);
/* set the size of the postfields data */
/* pass our list of custom made headers */
curl_easy_perform(easyhandle); /* post away! */
curl_slist_free_all(headers); /* free the header list */
Regards
_______________________________________________
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info