Last active
April 15, 2016 14:04
-
-
Save HeLiBloks/617ac64a5d67f30c758b4b801eb9a7ea to your computer and use it in GitHub Desktop.
curl scripts
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
#!/bin/sh | |
#show size of remote file, should fetch only header | |
curl 'http://www.ruhbarbdownloads.remote'\ | |
--silent -H 'Accept-Encoding: gzip,deflate'\ | |
--write-out 'size_download=%{size_download}\n'\ | |
--output /dev/null | |
#show header | |
curl -sI 'http://www.ruhbarbdownloads.remote' #| awk '/Content-Length/ { print $2 }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment