curl-library
supressing output from CURLOPT_NOBODY when it has been set to 1
From: John Utz <John.Utz_at_dmx.com>
Date: Fri, 8 Oct 2010 14:54:12 -0700
Date: Fri, 8 Oct 2010 14:54:12 -0700
Hi!
curl_easy_setopt(g_pCrl, CURLOPT_NOBODY, 1L);
Is a wonderful thing! However, it prints to stdout:
Content-Length: 209289216
Accept-ranges: bytes
I've dug into the source, and this buffer is written in lib/ftp.c and passed toCurl_client_write() in lib/sendf.c and it seems to be callback related.
I would like to not have it print to stdout, is there a callback that i can implement that will replace this default behavior?
tnx in advance for any information you all can provide!
johnu
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-10-08