cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: write callback issues (was Re: A new problem)

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 3 Apr 2008 22:42:43 -0700

On Fri, Apr 04, 2008 at 10:51:21AM +0530, Prasad J Pandit wrote:
> But what happens is, as soon as libcurl does the POST, instead of waiting
> for my reply, it goes ahead and calls the recv_data(...) and boom...
>
> Hope I'm clear enough..thank you!

When you say recv_data, are you talking about the CURLOPT_READFUNCTION
callback? That's how libcurl gets the data from your app to send in
the POST, so of course it has to be called before the request is sent
out. Or are you actually talking about CURLOPT_WRITEFUNCTION?

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-04-04