![]() |
|
![]() |
|
cURL ![]() ![]() ![]() curlpp mailing list Archives
[cURLpp] PostFieldSize in curlpp/libcurl
From: Piotr Dobrogost <curlpp_at_2008.autoera.pl>
Date: Mon, 17 Nov 2008 19:49:58 +0100
Jean
In example 12 you have this
request.setOpt(new cURLpp::Options::PostFields("abcd"));
Why is PostFieldSize set to 5? Do you have to take into account null terminated string used by libcurl?
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;
/* post binary data */
/* 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 */
they set CURLOPT_POSTFIELDSIZE to 23? They don't show in this example the data pointed to by binaryptr.
Regards
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info