HTTP::DetectUserAgent - Yet another HTTP useragent string parser.
This document describes HTTP::DetectUserAgent version 0.03
use HTTP::DetectUserAgent; my $ua = HTTP::DetectUserAgent->new($useragent_string); my $type = $ua->type; my $name = $ua->name; my $version = $ua->version; my $vendor = $ua->vendor; my $os = $ua->os;
HTTP::DetectUserAgent provides the parsing function for HTTP useragent strings. You can use it for determine which browser (or crawler, bot, and so on) is accessing to your servers or web applications.
There are a number of other modules that can be used to parse User-Agent strings: HTTP::BrowserDetect, HTML::ParseBrowser, HTTP::MobileAgent, HTTP::UserAgentString::Parser, Parse::HTTP::UserAgent, and Woothee.
The following is a review of all perl modules on CPAN for parsing User-Agent strings: http://neilb.org/reviews/user-agent.html
https://github.com/neilbowers/HTTP-DetectUserAgent
Takaaki Mizuno, <module@takaaki.info>
Thanks to yappo-san and drry-san for fixing bugs and cleaning up my code.
Copyright (C) 2009-2012 by Takaaki Mizuno
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTTP::DetectUserAgent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::DetectUserAgent
CPAN shell
perl -MCPAN -e shell install HTTP::DetectUserAgent
For more information on module installation, please visit the detailed CPAN module installation guide.