cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: no output wanted (resend)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 5 Jul 2012 19:27:26 +0200 (CEST)

On Thu, 5 Jul 2012, Jakob Hirsch wrote:

> Oh, no, I do want to receive the server's reply (or at least the HTTP code),
> I just don't want curl output the data on the console (stdout or stderr).
> The server's reply is only a single line, so there's no harm in reading that
> from the network.

But shouldn't you then use the write callback to receive the data?

> If there's currently no simple way to do that, may I propose that make that
> possible? E.g. by calling the write function only if it is set to a custom
> func or the file handle being not NULL.

Sorry, I must be missing something here. What would be the point of that?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-07-05