Where Is the cURL Config File?
.curlrc location in home with default flags and proxy settings on Linux.
Last updated
cURL reads default flags from .curlrc in your home directory on every invocation unless disabled. Proxy settings, retries and output defaults belong there.
One bad line breaks every curl call with a cryptic error. Test with --disable after edits to isolate config versus command problems.
Where cURL stores this, by platform
~/.curlrc
One flag per line exactly as the CLI takes them, with # comments allowed. Windows builds read %APPDATA%\.curlrc or _curlrc in home instead. Bypass it per call with -q or --disable for debugging.
Frequently asked questions
cURL fails on every request suddenly. Why?
A broken line in .curlrc above applies to all invocations. Retry with --disable to confirm, then fix the offending flag.
How do I set a default proxy for cURL?
Add the proxy line to .curlrc above. Per-call -x flags override the file when needed.
Notice an outdated path? Let us know.