HTTP::Headers::UserAgent - Routine to detect web browser platform from User-Agent HTTP Header


http-headers-useragent documentation  | view source Contained in the http-headers-useragent distribution.

Index


NAME

Top

HTTP::Headers::UserAgent - Routine to detect web browser platform from User-Agent HTTP Header

SYNOPSIS

Top

	use HTTP::Headers::UserAgent;
	$Platform = new HTTP::Headers::UserAgent::GetPlatform ($ENV{HTTP_USER_AGENT});

DESCRIPTION

Top

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.

NOTES

Top

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.

AUTHOR

Top

Leonid Neishtadt <leonid@neystadt.org>, John Neystadt <john@neystadt.org>

SEE ALSO

Top

perl(1).


http-headers-useragent documentation  | view source Contained in the http-headers-useragent distribution.