Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

curl -LO url


`curl -LOf url` is the simplest one I'm aware of that doesn't act too weirdly :)

Without `-f`, it'll happily save the 404 error page if you do `curl -LO https://example.com/index.htmll`

After playing with `wcurl`, I may or may not remember that one.

Also, wcurl puts a lot of effort into making `wcurl url1 url2` work equally predictably.

Finally, wcurl doesn't yet support `wcurl https://example.com` (without a filename at the end of the URL), but it might eventually.




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

Search: