3 ms·
http://www.google.com/insights/search/#cat=0-13&q=wget%2Ccurl&cmpt=q http://www.google.com/insights/search/#cat=0-13&q=wget%2... You can do everything you can
by jimmyjim 15y ago
http://www.google.com/insights/search/#cat=0-13&q=wget%2Ccurl&cmpt=q http://www.google.com/insights/search/#cat=0-13&q=wget%2...
You can do everything you can do with wget - and more - with curl (though it seems to be tending downward on that graph... not very sure what may be the reason for that).
Nice text on HTTP scripting: http://curl.haxx.se/docs/httpscripting.html http://curl.haxx.se/docs/httpscripting.html
And a total aside: http://ifconfig.me/ http://ifconfig.me/ is extremely awesome. I probably end up using 'curl ifconfig.me' about once a day at least.
- icebraining 15y agoWget can do something which curl can't: recursive downloading, and in particular full site mirroring. It's not useful every day, but when I need it I'm glad it's there.
- jimmyjim 15y agoAh, you're right. Here's a nice page detailing the differences between the two tools -- apparently written by the creator of curl itself: http://daniel.haxx.se/docs/curl-vs-wget.html http://daniel.haxx.se/docs/curl-vs-wget.html (and a more comprehensive chart with additional tools: http://curl.haxx.se/docs/comparison-table.html http://curl.haxx.se/docs/comparison-table.html )
- pooriaazimi 15y agoI'm using wget for a project, basically because it's the only crawler on the planet that given a single URL, can download that page + all images, style sheets and scripts embedded in it without hassle (just with a flag: -p or --page-requisites). It sucks however, because you can't redirect its output to another program and have to write the output to the file system (more I/O).