public static String getHttpServletRequestUserAgentFromRequestContext() {
        val request = getHttpServletRequestFromExternalWebflowContext();
        return HttpRequestUtils.getHttpServletRequestUserAgent(request);
    }
Gets http servlet request user agent.

@return the http servlet request user agent
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java