Skip to content

Utilities for processing user-agent strings. Can be used to handle http requests in real-time or to analyze log files.

License

Notifications You must be signed in to change notification settings

zhxing/user-agent-utils

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

user-agent-utils

Utilities for processing user-agent strings. Can be used to handle http requests in real-time or to analyze log files.

http://haraldwalker.github.com/user-agent-utils/

For the latest release, go to https://github.com/HaraldWalker/user-agent-utils/tree/master

Support me and buy me a beer:
Flattr this

If you are looking for a more complete user-agent detection, have a look at the libraries that use the user-agent-string.info database.
http://user-agent-string.info/download

New in Version 1.14 (unreleased)

TBA

Javadoc

http://haraldwalker.github.com/user-agent-utils/javadoc/

Maven

Include our github repository in your pom.xml:

<repository>
  <id>bitwalker.user-agent-utils.mvn.repo</id>
  <url>https://raw.githubusercontent.com/HaraldWalker/user-agent-utils/mvn-repo/</url>
  <!-- use snapshot version -->
  <snapshots>
     <enabled>true</enabled>
      <updatePolicy>always</updatePolicy>
   </snapshots>
</repository>

Add dependency:

<dependency>
   <groupId>bitwalker</groupId>
   <artifactId>UserAgentUtils</artifactId>
   <version>1.13</version>
</dependency>

Contributors

  • Please use the trunk branch on GitHub when making a pull request

Changelog

1.13

  • Added additional Chrome and Opera browser versions
  • Added current and future Firefox versons
  • Added agent string handling for Microsoft RSS platform user-agents
  • Added detection of Windows Phone 8.1 and IE Mobile 11.
  • Fixed null pointer exception when user-agent-string was null
  • Adjusted IE11 regex to match IE11 on Win8

1.12

  • Fix for version detection of Internet Explorer 11, contributed by https://github.com/parker
  • Browser versions are now comparable (#33), contributed by https://github.com/reindyr
  • Detect image proxy used by Google for Gmail
  • Detect Google's mobile bot (#8)
  • Internet Explorer 10 mobile version added (#28)
  • Improved Chrome mobile detection (#30)

1.11

  • Fixed none unique manufacturer id (issue #22)
  • added IOS 7 detection and improved IOS detection for iPads (issue #21)
  • added Chrome 30 and 31

1.10

  • Fixed and extended OS and browser detection when using Firefox on mobiles or tablets
  • Added additional and future Firefox versions
  • Added Chrome 29
  • Added Opera 11, 12, 15 & 16

1.9

  • Fixed version detection of Chrome Mobile
  • Added Firefox 20 detection plus beta and future versions
  • Added beta and future versions of Chrome

1.8

  • Option just to check just for a given collection of browsers or operating systems
  • Updated Chrome, Firefox and Safari detection to include the latest versions
  • Minor code optimizations
  • The package name has changed. Update import statements if you've been using the library before!

About

Utilities for processing user-agent strings. Can be used to handle http requests in real-time or to analyze log files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published