Go to file
Jay Satiro b654fb4cd3 tool_operate: Fix --fail-early with parallel transfers
- Abort via progress callback to fail early during parallel transfers.

When a critical error occurs during a transfer (eg --fail-early
constraint) then other running transfers will be aborted via progress
callback and finish with error CURLE_ABORTED_BY_CALLBACK (42). In this
case, the callback error does not become the most recent error and a
custom error message is used for those transfers:

curld --fail --fail-early --parallel
https://httpbin.org/status/404 https://httpbin.org/delay/10

curl: (22) The requested URL returned error: 404
curl: (42) Transfer aborted due to critical error in another transfer

> echo %ERRORLEVEL%
22

Fixes https://github.com/curl/curl/issues/6939
Closes https://github.com/curl/curl/pull/6984
2021-08-17 03:21:29 -04:00
.circleci copyright: add boiler-plate headers to CI config files 2021-06-29 17:44:03 +02:00
.github
.muse
CMake Get rid of the unused HAVE_SIG_ATOMIC_T et. al. 2021-07-23 12:40:42 -07:00
docs sectransp: support CURLINFO_CERTINFO 2021-08-17 08:40:44 +02:00
include RELEASE-NOTES: synced 2021-07-29 17:46:32 +02:00
lib sectransp: support CURLINFO_CERTINFO 2021-08-17 08:40:44 +02:00
m4 curl-openssl.m4: check lib64 for the pkg-config file 2021-07-26 23:46:30 +02:00
packages
plan9
projects docs: Fix typos 2021-07-03 22:11:26 +02:00
scripts zuul: add an mbedtls3 CI job 2021-08-09 10:26:11 +02:00
src tool_operate: Fix --fail-early with parallel transfers 2021-08-17 03:21:29 -04:00
tests misc: update incorrect copyright year ranges 2021-08-16 11:21:47 +02:00
winbuild winbuild/README.md: clarify GEN_PDB option 2021-08-09 13:02:52 -04:00
zuul.d zuul: add an mbedtls3 CI job 2021-08-09 10:26:11 +02:00
.azure-pipelines.yml CI/azure: reduce compile time with increased parallism 2021-07-27 20:42:29 +02:00
.cirrus.yml CI/cirrus: reduce compile time with increased parallism 2021-07-31 12:20:33 +02:00
.dcignore
.dir-locals.el
.gitattributes
.gitignore
.lgtm.yml
.mailmap mailmap: fixup Michał Antoniak 2021-08-14 23:23:09 +02:00
acinclude.m4 Get rid of the unused HAVE_SIG_ATOMIC_T et. al. 2021-07-23 12:40:42 -07:00
appveyor.yml
buildconf
buildconf.bat
CHANGES
CMakeLists.txt cmake: remove libssh2 feature checks 2021-07-05 22:44:00 +02:00
configure.ac configure: error out if both ngtcp2 and quiche are specified 2021-08-09 14:14:38 +02:00
COPYING
curl-config.in
GIT-INFO
libcurl.pc.in
MacOSX-Framework
Makefile.am
Makefile.dist
maketgz
README
README.md CI: remove travis details 2021-06-29 17:42:57 +02:00
RELEASE-NOTES RELEASE-NOTES: synced 2021-08-16 09:18:38 +02:00
SECURITY.md

curl logo

CII Best Practices Coverity passed AppVeyor Build Status Azure DevOps Build Status Cirrus Build Status Backers on Open Collective Sponsors on Open Collective Language Grade: C/C++ Codacy Badge Fuzzing Status

Curl is a command-line tool for transferring data specified with URL syntax. Find out how to use curl by reading the curl.1 man page or the MANUAL document. Find out how to install Curl by reading the INSTALL document.

libcurl is the library curl is using to do its job. It is readily available to be used by your software. Read the libcurl.3 man page to learn how!

You can find answers to the most frequent questions we get in the FAQ document.

Study the COPYING file for distribution terms.

Contact

If you have problems, questions, ideas or suggestions, please contact us by posting to a suitable mailing list.

All contributors to the project are listed in the THANKS document.

Commercial support

For commercial support, maybe private and dedicated help with your problems or applications using (lib)curl: https://curl.se/support.html

Website

Visit the curl website for the latest news and downloads.

Git

To download the very latest source from the Git server do this:

git clone https://github.com/curl/curl.git

(you'll get a directory named curl created, filled with the source code)

Security problems

Report suspected security problems via our HackerOne page and not in public!

Notice

Curl contains pieces of source code that is Copyright (c) 1998, 1999 Kungliga Tekniska Högskolan. This notice is included here to comply with the distribution terms.

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]