curl-library
Re: no output wanted (resend)
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 5 Jul 2012 16:12:38 +0200 (CEST)
Date: Thu, 5 Jul 2012 16:12:38 +0200 (CEST)
On Thu, 5 Jul 2012, Jakob Hirsch wrote:
> is there a simple way to make curl_easy_perform() not to output any data? I
> just want to HTTP-POST something to a web interface and are not interested
> in the server's reply.
I read that as you want to stop receiving data and not just not output it?
Then I'd suggest you return an error from the write callback instead of just
silently discarding the received data as then libcurl will immediately fail
and bail out without waiting for more data to arrive.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2012-07-05