Created
October 21, 2019 01:39
-
-
Save jason-riddle/9de703edfb15ffcbefb2302106597cac to your computer and use it in GitHub Desktop.
Examples for Curl #snippet #complete
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
# Robust curl command to retry, timeout, and save the output to a file | |
curl --silent --show-error \ | |
--location --max-redirs 3 \ | |
--retry 3 --retry-connrefused --retry-delay 2 \ | |
--max-time 30 \ | |
"$url" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment