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

TypeHTTP client
Operatorcurl project
Version8.22.0

String breakdown

FragmentMeaning
curl/8.22.0curl 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

Related user agents

All user agent strings →

What does your own browser send? Check your user agent →