blob: 3f2b65d1ae26891e965eb16daccfa000945c2e40 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
2SPDX-License-Identifier: curl
3Short: A
4Long: user-agent
5Arg: <name>
6Help: Send User-Agent <name> to server
7Protocols: HTTP
8Category: important http
9Example: -A "Agent 007" $URL
10Added: 4.5.1
11See-also: header proxy-header
12Multi: single
13---
14Specify the User-Agent string to send to the HTTP server. To encode blanks in
15the string, surround the string with single quote marks. This header can also
16be set with the --header or the --proxy-header options.
17
18If you give an empty argument to --user-agent (""), it will remove the header
19completely from the request. If you prefer a blank header, you can set it to a
20single space (" ").