# curl default config (XDG: ~/.config/curlrc)
# https://curl.se/docs/manpage.html
# Search order: $CURL_HOME/.curlrc → $XDG_CONFIG_HOME/curlrc → ~/.curlrc
#
# Keep secrets out of this file (use netrc / keychain / env instead).

# Fail on HTTP errors >= 400 when scripting (comment out for interactive browsing)
# fail-with-body

# Show errors
show-error

# Follow redirects (cap to avoid loops)
location
max-redirs = 10

# Prefer HTTP/2 when available
# http2

# Sensible timeouts (seconds)
connect-timeout = 30
max-time = 600

# Retry transient failures
retry = 3
retry-delay = 2
retry-all-errors

# Compressed transfer when server supports it
compressed
