Variable: url-user-agent
url-user-agent is a customizable variable defined in url-vars.el.gz.
Value
default
Documentation
User Agent used by the URL package for HTTP/HTTPS requests.
Should be one of:
* A string (not including the "User-Agent:" prefix)
* A function of no arguments, returning a string
* default (to compute a value according to url-privacy-level)
* nil (to omit the User-Agent header entirely)
This variable was added, or its default value changed, in Emacs 26.1.
Probably introduced at or before Emacs version 25.1.
Source Code
;; Defined in /usr/src/emacs/lisp/url/url-vars.el.gz
(defcustom url-user-agent 'default
"User Agent used by the URL package for HTTP/HTTPS requests.
Should be one of:
* A string (not including the \"User-Agent:\" prefix)
* A function of no arguments, returning a string
* `default' (to compute a value according to `url-privacy-level')
* nil (to omit the User-Agent header entirely)"
:type
'(choice
(string :tag "A static User-Agent string")
(function :tag "Call a function to get the User-Agent string")
(const :tag "No User-Agent at all" :value nil)
(const :tag "An string auto-generated according to `url-privacy-level'"
:value default))
:version "26.1"
:group 'url)