curl -A 'Mozilla/5.0 (X11; Linux x86_64)' https://example.com
Send a custom User-Agent header
Overrides the User-Agent string curl sends by default, useful when a server returns different content to browsers than to scripts. Some APIs reject the default curl agent. Set -A '' to send no User-Agent at all.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.