user-agent.md (792B)
1 --- 2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3 SPDX-License-Identifier: curl 4 Short: A 5 Long: user-agent 6 Arg: <name> 7 Help: Send User-Agent <name> to server 8 Protocols: HTTP 9 Category: important http 10 Added: 4.5.1 11 Multi: single 12 See-also: 13 - header 14 - proxy-header 15 Example: 16 - -A "Agent 007" $URL 17 --- 18 19 # `--user-agent` 20 21 Specify the User-Agent string to send to the HTTP server. To encode blanks in 22 the string, surround the string with single quote marks. This header can also 23 be set with the --header or the --proxy-header options. 24 25 If you give an empty argument to --user-agent (""), it removes the header 26 completely from the request. If you prefer a blank header, you can set it to a 27 single space (" "). 28 29 By default, curl uses curl/VERSION, such as User-Agent: curl/`%VERSION`.