| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
How to write from buffer to file
From: Ajeet kumar.S <ajeetkumar.s_at_jasmin-infotech.com>
Date: Sat, 12 Jul 2008 18:47:01 +0530
Hi all,
Thanks allot Joe N. But if we set a file pointer fp like below ;
fp= fopen("abc.txt", "w");
curl_easy_setopt(curl_handler, CURLOPT_WRITEDATA, fp);
Then it is going to copy data coming from server or out side source.
First doubt: If we have buffer like char Data_recv[10240] having some
Second doubt: If we have File(abc.txt). We to read this file content into
Third API: Is correct below option:
curl_easy_setopt(curl_handler, CURLOPT_READDATA, buffer);
here char buffer[10240];
but here how curl is going to recognize to which file(file name) is going
Thank you.
Regards,
Ajeet Kumar singh
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info