Curl download withredirection-redirect-redirected-dynamiclink file

When you have a Download URL with Dynamic link Redirection as that of Wordpress:

http://http://wordpress.org/latest.tar.gz

And you want to Downlod Wordpress directly into your Remote Server you can use Curl with the --location Option like here below:

curl --location http://domainName/fileName 2> /dev/null > fileName

(The 2> Option Serve to Redirect the stdError Output to /dev/null)

Example to download the latest Wordpress Release:

curl --location http://wordpress.org/latest.zip 2> /dev/null > latestWordpress.zip

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer