The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

HTTP::UserAgentString::Browser - Web browser

SYNOPSIS

 $browser = $p->parse($string)

 print "This is a ", ($browser->isRobot()) ? "robot" : "browser", "\n";
 print "Name: ", $browser->name(), "\n";
 print "Version: ", $browser->version(), "\n";
 print "URL: ", $browser->url(), "\n";
 print "Company: ", $browser->company(), "\n";
 print "Company URL: ", $browser->company_url(), "\n";
 print "Info URL: ", $browser->info_url(), "\n";
 print "Type: ", $browser->type(), "\n";
 
 $os = $browser->os();

DESCRIPTION

Used to represent web browsers returned by HTTP::UserAgentString::Parser. Object is read only. Accesors are provided for all capabilities defined by user-agent-string.info

METHODS

$browser->name()

Browser name. Example: "Firefox"

$browser->version()

String version. Example: "3.5"

$browser->url()

Web page for the browser

$browser->company()

Name of the company that develops the browser

$browser->company_url()

URL of the company that develops the browser

$browser->ico()

PNG icon for the browser that can be obtained from http://user-agent-string.info/pub/img/ua/

$browser->info_url()

Web page in http://user-agent-string.info/ that provides information on the browser

$browser->type()

Numeric type (see browser_type_id[] in the .ini file) More accessors are provided to check for type:

$browser->typeDesc()

String description for the browser's type.

$browser->isBrowser()

Check for standard web browser

$browser->isOffline()

Check for offline web browsers

$browser->isMobile()

Check for mobile web browsers

$browser->isEmail()

Check for e-mail clients

$browser->isWAP()

Check for WAP browsers

$browser->isLibrary()

Check for HTTP libraries

$browser->os

If defined, HTTP::UserAgentString::OS object representing the operating system where the browser is running.

SEE ALSO

HTTP::UserAgentString::OS for the class representing operating systems, and HTTP::UserAgentString::Robot for robots.

COPYRIGHT

 Copyright (c) 2011 Nicolas Moldavsky (http://www.e-planning.net/)
 This library is released under LGPL V3