Created
August 28, 2016 19:41
-
-
Save prasincs/4215c0e6f8efe0158e7ebfdd909f4c3c to your computer and use it in GitHub Desktop.
Download from apache closer.cgi url directly
This file contains 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
apache_dl(){ | |
wget $(curl -L "$1?as_json=1" | python -c 'import sys, json; i =json.load(sys.stdin); print i["preferred"]+i["path_info"].strip()') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment