cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_easy_perform Only send some data ??

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 23 Aug 2004 10:53:49 +0200 (CEST)

On Mon, 23 Aug 2004, Ram wrote:

> I want to send some data to a web server. I dont want to recieve any data
> from the server. Just send.
>
> If i ue curl_easy_perform. It does both send and recieve. Is there any
> function in curl lib which does only send and which does only recieve.

Then provide a write callback that returns an error right away. It'll make
libcurl to return (a failure) as soon as it tries to download data.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-08-23