What it means
An HTTP request header that identifies the requesting application, system or version. It does not prove the requester's actual identity.
Browsers and HTTP clients typically send their own User-Agent. The server may use it for compatibility processing, log analysis, or bot identification, but a single string is not enough to reliably determine client capabilities.
In collection projects, stable and interpretable client identifiers can help troubleshoot problems. Modifying the User-Agent does not also change the browser engine, TLS behavior, cookies, or the page running environment.
In a scraping task
Positioning differences between mobile and desktop versions
The same URL may return different layouts depending on request IDs and other request conditions. When encountering a selector failure, you should compare the actual response content and the request conditions instead of just repeatedly changing the identification string.
Common misconceptions
- Writing UA as Chrome will not give a normal HTTP client the ability to execute JavaScript.
- UA is not a unique or trusted device identifier, nor does it guarantee that the target page will be accessible.
References
Organized by Northleaf Studio. The source link retains the original address to facilitate continued reading.
- MDN: User-Agent request header
Original data · Verified on 2026-11-19