HTTP::BrowserDetect

HTTP::BrowserDetect is a Perl module to determine the Web browser, version, and platform from an HTTP user agent string.
Download

HTTP::BrowserDetect Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Lee Semel
  • Publisher web site:
  • http://search.cpan.org/~lhs/HTTP-BrowserDetect-0.98/BrowserDetect.pm

HTTP::BrowserDetect Tags


HTTP::BrowserDetect Description

HTTP::BrowserDetect is a Perl module to determine the Web browser, version, and platform from an HTTP user agent string. HTTP::BrowserDetect is a Perl module to determine the Web browser, version, and platform from an HTTP user agent string.SYNOPSIS use HTTP::BrowserDetect; my $browser = new HTTP::BrowserDetect($user_agent_string); # Detect operating system if ($browser->windows) { if ($browser->winnt) ... if ($brorwser->win95) ... } print $browser->mac; # Detect browser vendor and version print $browser->netscape; print $browser->ie; if (browser->major(4)) { if ($browser->minor() > .5) { ... } } if ($browser->version() > 4) { ...; } # Process a different user agent string $browser->user_agent($another_user_agent_string);The HTTP::BrowserDetect object does a number of tests on an HTTP user agent string. The results of these tests are available via methods of the object. Requirements: · Perl


HTTP::BrowserDetect Related Software