User Agent Samples Code
ASP
... Dim strUserAgent = Request.ServerVariables("HTTP_USER_AGENT") ....
PHP
... $strUserAgent = $_SERVER['HTTP_USER_AGENT']; ...
JavaScript
... var strUserAgent = navigator.userAgent; ...
ASP.NET (VB)
... Dim strUserAgent As String = Request.ServerVariables("HTTP_USER_AGENT") ...
ASP.NET (C#)
... string strUserAgent = Request.ServerVariables["HTTP_USER_AGENT"]; ...
Perl
... require LWP::UserAgent; my $strUserAgent = LWP::UserAgent->new; $ua->timeout(10); $ua->env_proxy; ...