curl-library
Re: [Survey] What people want us to do next
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 16 Jun 2014 11:52:31 +0200 (CEST)
Date: Mon, 16 Jun 2014 11:52:31 +0200 (CEST)
On Mon, 16 Jun 2014, Alessandro Ghedini wrote:
>> Why would it have to be done in libcurl? I really can't see how coloring of
>> text output is any business of libcurl's.
>
> The "-i" and "-v" options (the ones outputting headers and such) are
> implementented by simply setting CURLOPT_HEADER and CURLOPT_VERBOSE, without
> any additional support from curl. So either curl re-parses the libcurl
> output to add colors, or libcurl outputs already colored data. I may have
> misunderstood things though.
Yes, I would imagine that if curl wants colored header it needs to parse them
and add colors. So it would add header callback.
It actually already has a header callback setup, used for the -J,
--remote-header-name option.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2014-06-16