2024-05-15 15:20:32 -04:00
|
|
|
---
|
2023-12-11 20:30:44 -05:00
|
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
|
|
SPDX-License-Identifier: curl
|
|
|
|
Short: A
|
|
|
|
Long: user-agent
|
|
|
|
Arg: <name>
|
|
|
|
Help: Send User-Agent <name> to server
|
|
|
|
Protocols: HTTP
|
|
|
|
Category: important http
|
|
|
|
Added: 4.5.1
|
|
|
|
Multi: single
|
2024-05-15 15:20:32 -04:00
|
|
|
See-also:
|
|
|
|
- header
|
|
|
|
- proxy-header
|
|
|
|
Example:
|
|
|
|
- -A "Agent 007" $URL
|
2023-12-11 20:30:44 -05:00
|
|
|
---
|
2024-05-15 15:20:32 -04:00
|
|
|
|
|
|
|
# `--user-agent`
|
|
|
|
|
2023-12-11 20:30:44 -05:00
|
|
|
Specify the User-Agent string to send to the HTTP server. To encode blanks in
|
|
|
|
the string, surround the string with single quote marks. This header can also
|
|
|
|
be set with the --header or the --proxy-header options.
|
|
|
|
|
|
|
|
If you give an empty argument to --user-agent (""), it removes the header
|
|
|
|
completely from the request. If you prefer a blank header, you can set it to a
|
|
|
|
single space (" ").
|