HTTP::Headers::UserAgent - Routine to detect web browser platform from User-Agent HTTP Header
use HTTP::Headers::UserAgent; $Platform = new HTTP::Headers::UserAgent::GetPlatform ($ENV{HTTP_USER_AGENT});
The route will parse parameter string, which must be in HTTP User-Agent header form, and return the browser platform. The returned value is string with one of the following values:
Win95, Win98, WinNT, UNIX, MAC, Win3x, OS2, Linux
If the platform is not one of these (i.e. one of the robots), the returned string is empty.
Part of "WWW Cyrillic Encoding Suite" Get docs and newest version from http://www.neystadt.org/cyrillic/
Copyright (c) 1997-98, John Neystadt <http://www.neystadt.org/john/>. You may install this script on your web site for free. To obtain permision for or any other usage contact john@neystadt.org.
Drop me a line if you deploy this script on your site.
Leonid Neishtadt <leonid@neystadt.org>, John Neystadt <john@neystadt.org>
perl(1).
To install HTTP::Headers::UserAgent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::Headers::UserAgent
CPAN shell
perl -MCPAN -e shell install HTTP::Headers::UserAgent
For more information on module installation, please visit the detailed CPAN module installation guide.