What is better, curl or wget?

Viewed 79228

Are they the same or not? Can certain things be done with one but not the other? What are those? Or is it, at the end of the day, a matter of familiarity?

4 Answers

If you are programming, you should use curl. It has a nice api and is available for most languages. Shelling out to the os to run wget is a kludge and shouldn't be done if you have an API interface!

They both offer endless options, most of which I've never used. However, I tend to like wget more as it by default saves the output from the URL you give — perfect for downloading. Curl goes the other way, and displays the output directly to the terminal (by default).

Related