curl default user agent
curl sends curl/<version> by default. -A (--user-agent) replaces it, and -A "" drops the header entirely. Below is its default user agent, what each part means, and how to change it.
curl/8.22.0
At a glance
| Type | HTTP client |
| Operator | curl project |
| Version | 8.22.0 |
String breakdown
| Fragment | Meaning |
|---|---|
curl/8.22.0 | curl HTTP client, version 8.22.0 — a program or script, not a browser. |
Check and change it in code
See the default it sends
curl -sv -o /dev/null https://example.com 2>&1 | grep -i "^> user-agent"Send your own instead
curl -A "MyApp/1.0" https://example.com
Source: curl man page · checked September 2026