RestAPI GetRequestHeader
Use this command to retrieve a specified request header in the Solution-level REST APIs. This command is useful when creating Solution-level REST APIs that may be called by third-party applications. For more information see "Providing REST APIs" in the Longview Integration Guide.
Syntax:
RESTAPI GETREQUESTHEADER RequestHeaderName VariableName
where:
- RequestHeaderName is the name of the header to retrieve
- VariableName is the name of a string variable that will contain the value of the specified request header.
Syntax example:
CREATE VARIABLE TestRequestHeader as String
RESTAPI GETREQUESTHEADER “Content-Type” TestRequestHeader
EXPORTVARIABLE TestRequestHeader TestRequestHeader.txt