curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

show the URL in the error message?

From: Daniel Stenberg via curl-users <>
Date: Sun, 15 Nov 2020 23:39:53 +0100 (CET)

Hi friends,

User Earnestly over at github pointed out [1] that when you download multiple
URLs with curl in parallel and one or more or them fail, it isn't really
possible to tell what URL each error message is in regards to.

When I worked on a fix, it struck me that it can indeed also be helpful when
doing multiple URLs in serial as well and one of the URLs in the series fail.

One way to fix this issue, is to include the used URL in the error message,
which is what my current PR does [2].

A. Should we really add the URL in all error messages unconditionally?
(Consistency could be one reason to favor it.)

B. Should we add a new option for this, that enables it by default for
parallel mode and is disabled by default otherwise?

C. Can we do better?


[1] =
[2] =

  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
Received on 2020-11-15