<<< Iditarod day one

Home

Iditarod day two >>>


curl > wget

Monday,  03/06/23  02:54 PM

For you to know, and me to remember: curl is better than wget.

Both of these longtime members of the *nix utility world do the same thing: they retrieve files over the Internet using HTTP, thereby allowing a script to act like a browser.  They both support HTTPS (encrypted connections).  They both follow temporary and permenant redirections.  They both allow user-agents to be specified, and a wide variety of HTTP headers to be provided.  They both support saving and presenting cookies.  They both support HTTP user authentication.  But ... curl supports HTTP/1.1, while wget does not.  This turns out to be important. 

Bottom line, use curl.  You're welcome.

Comments?