For me the killer feature of wget is that by default it downloads a file with a name derived from the url. You do: wget url://to/file.htm and a file named "file.htm" appears in your cwd. Using curl, you would have to do curl url://to/file.htm > file.htm or some other, less ergonomical, incantation.
The curl-wget Venn diagram
11–20 of 159 posts
Re: The curl-wget Venn diagram
#12Mandatory mention for the comparison made by Daniel Stenberg https://daniel.haxx.se/docs/curl-vs-wget.html
Re: The curl-wget Venn diagram
#13Wget needed one option to enable resuming in all conditions, even after a crash: --continue
Wget's introdcution in the manual page also states: "Wget has been designed for robustness over slow or unstable network connections; if a download fails due to a network problem, it will keep retrying until the whole file has been retrieved."
I was sold. Even if I by some miracle managed to get all the options for curl to enable reliable performance over poor connection right, Wget seems to have those on by default and the sane defaults make me believe it will also have this expected correct behaviour enabled even for those error scenarios that I did not think to test myself. Or - if the HTTP protocol ever receives updates, newer versions of Wget will also support those by default, but curl will require new switches to enable the enhanced behaviour - something which I can not add after the product has been shipped.
To me it often seems like curl is a good and extremely versatile low-level tool, and the CLI reflects this. But for my everyday work, I prefer to use Wget as it seems to work much better out of the box. And the manual page is much faster to navigate - probalby in part due to just not supporting all the obscure protocols called out on this page.
Re: The curl-wget Venn diagram
#14Mandatory mention for the comparison made by Daniel Stenberg https://daniel.haxx.se/docs/curl-vs-wget.html
This newer comparison is also by Daniel Stenberg and is hosted on the same domain, but it's on his blog instead of the curl docs.
Re: The curl-wget Venn diagram
#15Re: The curl-wget Venn diagram
#16For me the killer feature of wget is that by default it downloads a file with a name derived from the url. You do: wget url://to/file.htm and a file named "file.htm" appears in your cwd. Using curl, you would have to do curl url://to/file.htm > file.htm or some other, less ergonomical, incantation.
curl -O https://curl.se/docs/manpage.html#-O
Re: The curl-wget Venn diagram
#17For me the killer feature of wget is that by default it downloads a file with a name derived from the url. You do: wget url://to/file.htm and a file named "file.htm" appears in your cwd. Using curl, you would have to do curl url://to/file.htm > file.htm or some other, less ergonomical, incantation.
curl -O https://curl.se/docs/manpage.html#-O
wget is better for download lists, but I'd accept the argument that a simple shell script is similarly easy.
Re: The curl-wget Venn diagram
#18For me the killer feature of wget is that by default it downloads a file with a name derived from the url. You do: wget url://to/file.htm and a file named "file.htm" appears in your cwd. Using curl, you would have to do curl url://to/file.htm > file.htm or some other, less ergonomical, incantation.
wget "url://to/file.htm?uid=foo&q=bar&rnd=4"Re: The curl-wget Venn diagram
#19I would also add at least "sane default options", "continues downloads" and "retries on error" to the Wget column. I recently had to write a script that downloads a very large file over a somewhat unreliable connection. The common wisdom among the engineers is that you need to use Wget for this job. I tried using curl but out of the box it could not resume or retry the download. I would have to study the manual and s…
Maybe I'm misunderstanding, but curl has exactly that feature, it's the `-C` flag. If you want retries, there's `--retry`. I find curls defaults pretty sane, personally, I wouldn't want either of those by default for a tool like curl.
Re: The curl-wget Venn diagram
#20For me the killer feature of wget is that by default it downloads a file with a name derived from the url. You do: wget url://to/file.htm and a file named "file.htm" appears in your cwd. Using curl, you would have to do curl url://to/file.htm > file.htm or some other, less ergonomical, incantation.
Yeah, but: wget "url://to/file.htm?uid=foo&q=bar&rnd=4"