getServerVariable (parameterName : string) : string

The server variables and also the request headers (see also “getHeader”) can be read out by means of this method.

The following example reads out the user agent of the request first of all. Then the IP address of the client is read out. If a LoadBalancer is connected between client and application, REMOTE_ADDR will no longer indicate the correct IP address of the client, but that of the LoadBalancer.

<xsl:value-of select="web:getServerVariable('HTTP_USER_AGENT')" />
<xsl:value-of select="web:getServerVariable('REMOTE_ADDR')" />

The request header and additional Informations can be viewed in the request Monitor .This monitor is accessed by the handler "trace.axd". For example: http://my-domain/project/preview/trace.axd.