cURL / Mailing Lists / curl-library / Single Mail

curl-library

How to PUT data char buffer??

From: <tamal.biswas_at_wipro.com>
Date: Wed, 24 Dec 2008 17:47:09 +0530

Hi,
I am able to pass function pointer to the callback function and do the
PUT operation. but I actually need to pass
char buffer. How can I do the same without using any file mechanism.
 
This is what i am doing:
 
 curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
 curl_easy_setopt(curl, CURLOPT_READDATA,hd_src);
 res = curl_easy_perform(curl);
 
 
in the call back I am just doing fread. But how to put a char* buffer,
I dont have any clue. please suggest.

 
Thanks & Regards

Tamal Tanu Biswas

Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
Received on 2008-12-24