cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Use read/write with same curl handle.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 28 Feb 2006 14:57:47 +0100 (CET)

On Tue, 28 Feb 2006, Nilesh wrote:

> Can I use same curl handle to send and receive data ?

Yes.

> -- Using multi_perform and select to check if data is available to
> send/recieve.
>
> Problem is that flow is coming to default case of switch, which tells some
> data has come.

What flow is coming to what "default case" ?

> While DEBUGIng I am getting HTTP header details which I have received with
> vaid content length, but it doesn't display data.

Are you saying libcurl says the transfer is complete after only the headers
have been transferred? I find that hard to believe.

> I have also put debug printf in write_callback function to printf received
> data, which doesn't really get printed.

And you are sure you keep looping and calling the *perform() function as long
as the transfer is still alive?

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-02-28