| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-users Mailing List Archives
Re: echo to function curl_easy_perform
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 9 Dec 2008 23:04:48 +0100 (CET)
On Tue, 9 Dec 2008, Joe Baldwin wrote:
> I took an example from the libcurl package download that I modified to make
Then consider the curl-library list instead!
> The original program was "post-callback.c". My modified version is:
> pooh.sizeleft = strlen(data);
> curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "DATA=0001");
> curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, pooh.sizeleft);
This combo looks wrong to me.
> When the curl_easy_perform function is executed, the data received from the
http://curl.haxx.se/docs/faq.html#How_do_I_prevent_libcurl_from_wr
> I also receive the content of the answer in pooh variable.
No you don't. That variable is used for the READFUNCTION which in your case
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2008-12-09 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info