wget binary for Mac OS X

“wget” is a very handy Unix command line utility to download files over http. It not only shows details about the connection but also tracks current and overall download speed in KB/s or MB/s. Unfortunately, it’s not part of Mac OS X. If you already own Apple’s Xcode development environment you could easily compile your own wget binary or just download it from this site’s download area.

wget http://cachefly.cachefly.net/10mb.test
--19:59:11-- http://cachefly.cachefly.net/10mb.test
 => `10mb.test'
Resolving cachefly.cachefly.net...
Connecting to cachefly.cachefly.net[]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10,485,760 [application/octet-stream]

100%[================================================================================================>] 10,485,760 1.86M/s ETA 00:00

19:59:17 (1.63 MB/s) - `10mb.test' saved [10485760/10485760]

You could do something similar with curl (which is included in OS X by default) but I prefer wget’s output over curl’s.

curl -o test.bin cachefly.cachefly.net/10mb.test
 % Total % Received % Xferd Average Speed Time Time Time Current
 Dload Upload Total Spent Left Speed
100 10.0M 100 10.0M 0 0 1739k 0 0:00:05 0:00:05 --:--:-- 2119k