cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to filter cURL stderr output but keep the progress meter output?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 14 Dec 2013 22:51:46 +0100 (CET)

On Mon, 9 Dec 2013, Daniele Severi wrote:

> I am new to cURL and I would like to filter and replace the text of cURL
> errors with a custom message and this script piping to sed works:

...

> I have searched forums and tried several solutions but nothing seems to
> work. As soon as you sed or grep cURL stderr the progress meter is not shown
> anymore.

I guess those tools then filter off the stuff you'd want to have passed
through to the terminal.

My general advice for you would probably be to instead write your own little
thing in a language that has a libcurl binding.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-12-14