3 ms·
Perhaps the default behavior changes things? In wget, you download a file, in curl you display it. If you just want to download it, it saves you typing. My per
by d33 10y ago
Perhaps the default behavior changes things? In wget, you download a file, in curl you display it. If you just want to download it, it saves you typing.
My personal main usage of cURL is when reproducing requests made by a browser - using something like Chromium's F12 or Firebug, clicking on the "Network" tab and in the context menu for a request clicking "Copy as cURL". Invaluable.
- tobylane 10y ago-O is one of few curl options I've memorised. It downloads to a file named the same as the source.
- cyborgx7 10y agoI have to say, I love that default behaviour. Too many newer command line programms need some obscure option to make them write to stdout. Some let you replace the filename with a dash but too many of them don't follow that standard, so that I still have to open the manpage to get them to do what really should be the default behaviour. And it's perfect for my usecase, which mostly involves piping the result into other command line utilities like sed or grep in shell scripts.
- d33 10y agoIf any program doesn't use - to let you write to stdout, just use /dev/stdout. It's usually going to work unless there's a check whether it's a regular file or unless program tries to seek (e.g. compression programs).
- amazingman 10y ago>Perhaps the default behavior changes things? In wget, you download a file, in curl you display it. If you just want to download it, it saves you typing. This. If you want to wean yourself off of wget, perhaps aliasing wget to `curl -O` will help. It helped me :)