Citrix Systems Network Router 9.2 User Manual
68
Citrix NetScaler Policy Configuration and Reference Guide
HTTP.REQ.HOSTNAME.
DOMAIN
Returns the domain name part of the host name. For
example, if the host name is www.myhost.com or www.
myhost.com:8080, the domain is myhost.com.
example, if the host name is www.myhost.com or www.
myhost.com:8080, the domain is myhost.com.
Returns incorrect results if the host name has an IP
address. For information on expressions for IP
addresses, see
address. For information on expressions for IP
addresses, see
All text operations that you specify after this prefix are
case insensitive.
case insensitive.
HTTP.REQ.HOSTNAME.
SERVER
Returns the server name part of the host name. If the
host name is www.myhost.com or www.myhost.
com:8080, the server is www.myhost.com.
host name is www.myhost.com or www.myhost.
com:8080, the server is www.myhost.com.
All text operations that you specify after this prefix are
case insensitive.
case insensitive.
HTTP.REQ.METHOD
Returns the value of the METHOD in an HTTP request,
or matches the method type if you provide it as an
argument, for example, http.req.method.
eq(get)
or matches the method type if you provide it as an
argument, for example, http.req.method.
eq(get)
. If you enclose the argument in quotes,
evaluation is case-sensitive.
HTTP.REQ.URL
Returns the HTTP URL.
HTTP.REQ.URL.HOSTNAME
Returns the host name in the HTTP URL.
Do not use this prefix in bidirectional policies.
Note that there are two similar prefixes that return host
names, as follows:
names, as follows:
• HTTP.REQ.HOSTNAME returns the host name
from the URL if there is one; otherwise, it returns
the value in the last occurrence of the Host header.
the value in the last occurrence of the Host header.
• HTTP.REQ.HEADER(
"
Host
"
)
only returns the
value from the Host header. To use this value as a
host name you must typecast this string, as
illustrated in the following example: http.req.
header(
host name you must typecast this string, as
illustrated in the following example: http.req.
header(
"
host
"
).typecast_http_
hostname_t
For more information on typecasting, see
HTTP Expression Prefixes that Return Text
Prefix
Description