posted 13 years ago
Every request has a header named "User-Agent" that contains information about the user's browser and environment (including operating system).
An example of this header's value is this: "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 (.NET CLR 3.5.30729)".
You can get the header value in a servlet using a HttpServletRequest method: