cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: progress bar prefix, second try

From: Björn Schlögl <mastamind+ml_at_aleph.b3ta.org>
Date: Mon, 5 Jan 2009 00:57:33 +0100

On Sunday 04 January 2009 23:07:34 Daniel Stenberg wrote:
> Perhaps more people would be if you told us what useful purpose it serves?
> What particular use-case improves (a lot) by prepending a custom string to
> the progress bar?

- If someone wants to download more than one file and uses the regex support
of curl in combination with the progress bar, it is quite impossible to find
out, what file is currently being downloaded.

- In a script it may be desirable to display the file/url which may be a
redirect and therefore unknown in advance by the time of the execution of
curl or the author of the script does not want to use more than one line to
display the progress bar and the url.

- If you want to use http keep-alive to download more than one file within one
execution of curl it will be impossible to display the filename or url with
the progress bar.

Of course support for variables is not yet avaiable, but that should not be a
big problem.

Björn

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2009-01-05