4 ms·
I use `curl -JLOC-` It's easy to remember, JLO is jlo, C is continue, - for symmetry.
by kasabali 2y ago
I use `curl -JLOC-`
It's easy to remember, JLO is jlo, C is continue, - for symmetry.
- moontear 2y agoStealing this, but had to lookup the parameters. It does work, but it should be `-C -` with a space. Also I like progress bars so my alias for now is: curl -#JLOC - * -# Progress bar instead of the standard meter * -J Use the server-specified Content-Disposition filename instead of extracting a filename from the URL * -L Follow redirects * -O Write output to a local file (download) * -C - Resume transfers Maybe a good mnemonic would be something along the lines of jlo liking hashtags?
- cholantesh 2y ago>* -J Use the server-specified Content-Disposition filename instead of extracting a filename from the URL Can't wrap my head around how -J maps to remote header name...still, this was super useful, thanks!
- kasabali 2y ago> but it should be `-C -` with a space Works just fine without it
- moontear 2y agoNot in my Debian distro and also documented differently in the man pages. If it works for you: nice
- wodenokoto 2y ago“jlo” as in Jennifer Lopez or how does that mnemonic work?
- kasabali 2y agoExactly.
- sidneythekidney 2y agoMy curl complains when -J/--remote-header-name and -C/--continue-at is combined. $ curl -JLOC- "https://news.ycombinator.com/news.css?nZdOgS3Y18zj0ynCo50h" curl: --continue-at and --remote-header-name cannot be combined curl: try 'curl --help' or 'curl --manual' for more information