Smartsite SXML CopyCode image Copy Code
{debug.write(smi.getbrowserinfo("Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)"))}
{debug.write(smi.getbrowserinfo("Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; nl-NL; rv:1.9.2) Gecko/20100115 Firefox/3.6"))}
{debug.write(smi.getbrowserinfo("Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_1_3 like Mac OS X; nl-nl) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7E18 Safari/528.16"))}
{debug.write(smi.getbrowserinfo("BlackBerry8130"))}
{debug.write(smi.getbrowserinfo("Browser Opera/9.50 (Nintendo DSi; Opera/483; U; es-ES)"))}
{debug.write(smi.getbrowserinfo("Browser Opera/9.30 (Nintendo Wii; U; ; 2047-7; fr)"))}
{debug.write(smi.getbrowserinfo("Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"))}
{debug.write(smi.getbrowserinfo("Xenu Link Sleuth 1.3.5"))}
{debug.write(smi.getbrowserinfo("Feedfetcher-Google; (+http://www.google.com/feedfetcher.html; feed-id=13764328134314209574)"))}
Example Result CopyCode image Copy Code
Browser=Microsoft Internet Explorer 7.0; BrowserGroup=Microsoft Internet Explorer; OperatingSystem=Windows XP; IsMobile=false
Browser=Firefox 3.6; BrowserGroup=Mozilla; OperatingSystem=Mac OS X; IsMobile=false
Browser=Safari; BrowserGroup=Safari; OperatingSystem=iOS; IsMobile=true
Browser=Blackberry; BrowserGroup=Blackberry; OperatingSystem=Blackberry; IsMobile=true
Browser=Opera 9.50; BrowserGroup=Opera; OperatingSystem=Nintendo DSi; IsMobile=true
Browser=Opera 9.30; BrowserGroup=Opera; OperatingSystem=Nintendo Wii; IsMobile=true
Browser=Google; BrowserGroup=Spider; OperatingSystem=Spider; IsMobile=false
Browser=Xenu; BrowserGroup=Spider; OperatingSystem=Spider; IsMobile=false
Browser=Google Feedfetcher; BrowserGroup=FeedReader; OperatingSystem=Other; IsMobile=false