<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title> Bugzilla::UserAgent</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" title="style" type="text/css" href=".././../../../style.css" media="all" > </head> <body id="pod"> <p class="backlinktop"><b><a name="___top" href="../index.html" accesskey="1" title="All Documents"><<</a></b></p> <h1>Bugzilla::UserAgent</h1> <div class='indexgroup'> <ul class='indexList indexList1'> <li class='indexItem indexItem1'><a href='#NAME'>NAME</a> <li class='indexItem indexItem1'><a href='#SYNOPSIS'>SYNOPSIS</a> <li class='indexItem indexItem1'><a href='#DESCRIPTION'>DESCRIPTION</a> <li class='indexItem indexItem1'><a href='#FUNCTIONS'>FUNCTIONS</a> </ul> </div> <h1><a class='u' href='#___top' title='click to go to top of document' name="NAME" >NAME</a></h1> <p>Bugzilla::UserAgent - UserAgent utilities for Bugzilla</p> <h1><a class='u' href='#___top' title='click to go to top of document' name="SYNOPSIS" >SYNOPSIS</a></h1> <pre class="code"> use Bugzilla::UserAgent; printf "platform: %s op-sys: %s\n", detect_platform(), detect_op_sys();</pre> <h1><a class='u' href='#___top' title='click to go to top of document' name="DESCRIPTION" >DESCRIPTION</a></h1> <p>The functions exported by this module all return information derived from the remote client's user agent.</p> <h1><a class='u' href='#___top' title='click to go to top of document' name="FUNCTIONS" >FUNCTIONS</a></h1> <dl> <dt><a name="detect_platform" ><code class="code">detect_platform</code></a></dt> <dd> <p>This function attempts to detect the remote client's platform from the presented user-agent. If a suitable value on the <i>platform</i> field is found, that field value will be returned. If no suitable value is detected, <code class="code">detect_platform</code> returns <i>Other</i>.</p> <dt><a name="detect_op_sys" ><code class="code">detect_op_sys</code></a></dt> <dd> <p>This function attempts to detect the remote client's operating system from the presented user-agent. If a suitable value on the <i>op_sys</i> field is found, that field value will be returned. If no suitable value is detected, <code class="code">detect_op_sys</code> returns <i>Other</i>.</p> </dd> </dl> <p class="backlinkbottom"><b><a name="___bottom" href="../index.html" title="All Documents"><<</a></b></p> <!-- end doc --> </body></html>