cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Use of multi interface of libcurl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 30 Dec 2010 17:24:21 +0100 (CET)

On Thu, 30 Dec 2010, amit paliwal wrote:

>> By providing readcb, will I be able to send GET with my custom data???
>>
>> http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTREADFUNCTION
>
> I have seen this documentation and wrote sample code by this only, but I
> don't know somehow my readcb is not getting called. I added one printf()
> statement just to check whether readcb is called or not, but it never
> happens. Whenevr we do curl_easy_perform() will it be sending a GET message
> to Server? I have observed that some GET request goes to my test server. I
> am sure I am missing something and need help from you to fix it.

You can either do it like a POST (and change the method to GET)
http://curl.haxx.se/libcurl/c/post-callback.html

... or you can do it like a PUT (and change the method to GET)
http://curl.haxx.se/libcurl/c/httpput.html

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-12-30