This example will go get the latest version of wordpress and save it as “wordpress-latest.tar.gz” in the current directory. Note, don’t include the protocal (http://) in the url.
curl wordpress.org/latest.tar.gz > wordpress-latest.tar.gz