WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  viewing browser type

    Posted 01/05/11 11:36 AM

    Our programmers need the ability to view the browser type and operating system from the incoming request.  I cannot seem to find the information.  Our configuration consists of an Application server behind the firewall and a webserver infront of the firewall.  How can we get the information from the initial http header passed through to the app server?



  • 2.  viewing browser type

    Posted 01/05/11 01:21 PM

    the http request header usually have this data:


    GET /dumprequest HTTP/1.1
    Host:
    User-Agent:
    Accept:
    Accept-Language:
    Accept-Encoding:
    Accept-Charset:
    Keep-Alive:
    Connection:
    Referer:


    the User-Agent is the one that tells the browser type its like:


    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 (CK-IBM) Firefox/3.6.13 GTB7.1 ( .NET CLR 3.5.30729)