user-agent.d 752 B

123456789101112131415161718192021
  1. c: Copyright (C) 1998 - 2022, Daniel Stenberg, <[email protected]>, et al.
  2. SPDX-License-Identifier: curl
  3. Short: A
  4. Long: user-agent
  5. Arg: <name>
  6. Help: Send User-Agent <name> to server
  7. Protocols: HTTP
  8. Category: important http
  9. Example: -A "Agent 007" $URL
  10. Added: 4.5.1
  11. See-also: header proxy-header
  12. ---
  13. Specify the User-Agent string to send to the HTTP server. To encode blanks in
  14. the string, surround the string with single quote marks. This header can also
  15. be set with the --header or the --proxy-header options.
  16. If you give an empty argument to --user-agent (""), it will remove the header
  17. completely from the request. If you prefer a blank header, you can set it to a
  18. single space (" ").
  19. If this option is used several times, the last one will be used.