mirror of
https://github.com/curl/curl.git
synced 2026-05-15 14:26:20 +03:00
Reported-by: Jeremy Nicoll Bug: https://curl.se/mail/archive-2026-04/0029.html Closes #21477
802 B
802 B
| c | SPDX-License-Identifier | Short | Long | Arg | Help | Protocols | Category | Added | Multi | See-also | Example | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. | curl | A | user-agent | <name> | Send User-Agent <name> to server | HTTP | important http | 4.5.1 | single |
|
|
--user-agent
Specify the User-Agent string to send to the HTTP server. To encode blanks in the string, surround the string with single or double 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 (" ").
By default, curl uses curl/VERSION, such as User-Agent: curl/%VERSION.