July 3rd, 2024

Wcurl: a curl wrapper to download files

Samuel Henrique introduces "wcurl," a wrapper for curl simplifying file downloads via the terminal. It offers default settings for common use cases, aiming to ease file downloads without complex curl parameters. Available in Debian unstable since July 2, 2024, with plans for wider distribution.

Read original articleLink Icon
Wcurl: a curl wrapper to download files

The blog post by Samuel Henrique introduces "wcurl," a wrapper for the curl command designed to simplify file downloads via the terminal. The wcurl script provides default settings for common use cases, such as encoding URLs, downloading multiple files in parallel, following redirects, and automatically naming output files. It aims to streamline the process of downloading files without the need to remember complex curl parameters. The post highlights the availability of wcurl in Debian unstable since July 2, 2024, with plans for inclusion in Debian testing and backports. The script is included in the Debian curl package starting from version 8.8.0-2. Samuel discusses the motivation behind wcurl, addressing the common struggle of users in remembering curl parameters for file downloads. The post also touches on the idealization of a new executable like wcurl to complement curl's functionality. Samuel emphasizes the importance of feedback and acknowledges contributors who helped refine the tool. The post concludes with information on providing feedback, naming considerations, and acknowledgments for support received during the development of wcurl.

Link Icon 9 comments
By @elygre - 5 months
It does sound like a request for “curl —-wget”, which I wholeheartedly support.
By @dim13 - 5 months
A simplest alias `dl='curl -O'` just does the same for me.
By @kasabali - 5 months
I use `curl -JLOC-` It's easy to remember, JLO is jlo, C is continue, - for symmetry.
By @ehPReth - 5 months
is there a way to make curl do wget style progress output? i like curl but would love that kind of meter
By @chewz - 5 months
alias wget='echo "using httpie as wget";http -d'
By @efitz - 5 months
I appreciate it, but why not just:

   alias wcurl="curl -# -O $1" 
(I just tested this on MacOS).
By @INTPenis - 5 months
I just don't get this, you can't remember two arguments so you invent a whole program.

Personally I never had any problems using curl to download files, nor remembering tar arguments.

By @throwaway984393 - 5 months
This happens so often. A developer could just read a man page or learn something deeply by example, but they don't. Instead they struggle for the rest of their lives in ignorance, even going so far as to adopt a hack to avoid having to learn a new thing. They will go far out their way to not learn a new thing, and over time, cause themselves untold misery.