Last active
October 3, 2017 10:03
-
-
Save boina-n/78a511a58b0206005116f2575d909083 to your computer and use it in GitHub Desktop.
Pivotal file_download_api
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apikey=YourApiKeyhere | |
filename=pcfdev-v0.24.0+PCF1.9.0-linux.zip | |
url=https://network.pivotal.io/api/v2/products/pcfdev/releases/4027/product_files/12667/download | |
wget -O $filename --header="Authorization: Token $apikey" $url | |
# If you are behind a proxy: | |
curl -x http://myproxyaddress:port --proxy-user username:password' -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Token $apikey" -X GET $url -o $filename |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment