Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6688603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:25:19+00:00 2026-05-26T05:25:19+00:00

I have a Java module that receives the User-Agent string from an end user’s

  • 0

I have a Java module that receives the User-Agent string from an end user’s browser needs to behave slightly differently depending on the type of browser, the version of the browser and maybe even the operating system.
E.g.: {"FireFox", "7.0", "Win7"}, {"Safari", "3.2", "iOS9"}

I understood that the User-Agent string can vary in its format for the exact same configuration due to different plug-in installations etc.

My questions:

  1. Is the structure of the User-Agent well defined? If yes – where can I find it exactly? (From my understanding of the RFC there is not much standardization here).
  2. Assuming the question for #1 is No – is there a proper way to parse it to get the info I need?
  3. Is there a better way to get the info I need other than the User-Agent string?

Important note – I’m talking about a web-app, so my data collection abilities are limited to javascript.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:25:20+00:00Added an answer on May 26, 2026 at 5:25 am

    For Java, take a look at User-Agent-Utils. It’s fairly compact (< 50kB) and has no dependencies.

    Note although the latest release is quite recent (1.21, released 2018-01-24), the library’s page states:

    Warning: This project is end-of-life and will not be updated regularly any longer

    And on the github page it says:

    EOL WARNING

    This library has reached end-of-life and will not see regular updates
    any longer.

    Version 1.21 was the last official release in 2018.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Java module that is receiving a compressed string from a remote
I have a Perl module that I would like to use from Java. Is
I have a Java multi-module Maven project that I want to build an MVN
We have a Java application with a particular module that checks if a temporary
I have a rails app that loads lots of data from some java services.
I have Java Map (out of Strings and Ints) objects that I want to
I already have Java code to display and process data from a database. I
I have a module that builds an app called MyApp. I have another that
My java module gets a huge input xml from a mainframe. Unfortunately, the mainframe
I have a Java project that expects external modules to be registered with it.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.