I'm trying to switch over part of a script from wget to curl. I have this command:

wget --output-document=dl.html --quiet --timeout=10 --tries=1 $URL

What's the curl equivalent of this?

curl -o dl.html -s -m 10 --retry 0 "$URL"

Note: --retry is not really necessary, but is here for completeness' and because the defaults might be set in an environment or rc file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.