Hacker News new | past | comments | ask | show | jobs | submit login

I use `curl -JLOC-` It's easy to remember, JLO is jlo, C is continue, - for symmetry.



Stealing 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?


>* -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!


> but it should be `-C -` with a space

Works just fine without it


Not in my Debian distro and also documented differently in the man pages. If it works for you: nice


My 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


“jlo” as in Jennifer Lopez or how does that mnemonic work?


Exactly.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: