I have found following tips useful for Mac users.
For Mac users open terminal and do the following,
Include the -L (or –location) switch, since that will allow curl to follow any redirects (if the file gets moved, but there is a redirect for it). Also, if the URL’s file part (the section after the last slash) is not pretty, you can give a name for the downloaded file by using a lower-case -o (instead of -O), followed by a space and the name in quotes (Although -O can be left as is which still allows one to rename file after download completion in the select location. Also, always put the URL in single-quotes – ampersands and a few other characters will break on the command line if they aren’t in quotes. Here’s an example of those ideas combined:
First start by selecting a suitable location where you want your file saved as below
curl -L -o ‘myfile.dmg’ ‘http://www.somewebsite.com/files/getdmg?id=24’
cd ~/Desktop curl -L -O http://www.somewebsite.com/files/getdmg?id=24
Hope this works for most Mac users. Cheers, SDK