Scoped GlideServletRequest - getHeader(String name)

Returns the header value.

Table 1. Parameters
Name Type Description
name String The name of the header to be retrieved.
Table 2. Returns
Type Description
String The header.
var headerValue = g_request.getHeader("host");

Output:

demonightlyus.service-now.com