RESTMessageV2 - getRequestHeader(String headerName)

Get the value for an HTTP header specified in the REST message.

By default, this method cannot return the value for a header set automatically by the system. To grant this method access to all headers, set the property glide.http.log_debug to true.

Table 1. Parameters
Name Type Description
headerName String The request header you want to get the value for.
Table 2. Returns
Type Description
String The value of the specified header.
var sm = new sn_ws.RESTMessageV2("Yahoo Finance","get"); //Might throw exception if message doesn't exist or not visible due to scope.
var header = sm.getRequestHeader("Accept");