Use curl instead of wget - curl comes installed with OS X and does the job (thanks to Karen for the -L argument info)