—connect-to
Syntax: --connect-to <HOST1:PORT1:HOST2:PORT2>
- “HOST1” and “PORT1” may be empty, to match any host/port.
- “HOST2” and “PORT2” may also be empty, to use the request’s original host/port.
- Added in curl 7.49.0.
- Example:
curl --connect-to ::<IP> <URL>
Compared to --resolve, it can adapt to the request’s original port.
wcurl
wcurl - a simple wrapper around curl to easily download files on Debian 13:
By default, wcurl will:
- Percent-encode whitespaces in URLs;
- Download multiple URLs in parallel if the installed curl’s version is >= 7.66.0;
- Follow redirects;
- Automatically choose a filename as output;
- Avoid overwriting files if the installed curl’s version is >= 7.83.0 (—no-clobber);
- Perform retries;
- Set the downloaded file timestamp to the value provided by the server, if available;
- Disable curl’s URL globbing parser so {} and [] characters in URLs are not treated specially;
- Percent-decode the resulting filename;
- Use “index.html” as default filename if there’s none in the URL.