lookup> User-Agent

User-Agent

contains information about the user agent originating the request, which is often used by servers to help identify the scope of reported interoperability problems, to work around or tailor responses to avoid particular user agent limitations, and for analytics regarding browser or operating system use.

请求头RFC7231#5.5.3
NameUser-Agent
Type请求头
SpecificationRFC7231#5.5.3

contains information about the user agent originating the request, which is often used by servers to help identify the scope of reported interoperability problems, to work around or tailor responses to avoid particular user agent limitations, and for analytics regarding browser or operating system use.

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64)

RFC7231#5.5.3

What does the User-Agent header do?

contains information about the user agent originating the request, which is often used by servers to help identify the scope of reported interoperability problems, to work around or tailor responses to avoid particular user agent limitations, and for analytics regarding browser or operating system use.

Is User-Agent a request or response header?

It is classified as a request header and can appear in requests or responses depending on context.

Related status codes