Skip to main content
insightsoftware Documentation insightsoftware Documentation
{%article.title%}
Published:
Was this article helpful?
0 out of 0 found this helpful

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.

Copy

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.
Copy

Syntax example

CREATE VARIABLE TestRequestHeader as String
RESTAPI GETREQUESTHEADER “Content-Type” TestRequestHeader
EXPORTVARIABLE TestRequestHeader TestRequestHeader.txt                

Published:

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.

Copy

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.
Copy

Syntax example

CREATE VARIABLE TestRequestHeader as String
RESTAPI GETREQUESTHEADER “Content-Type” TestRequestHeader
EXPORTVARIABLE TestRequestHeader TestRequestHeader.txt                

For an optimal Community experience, Please view on Desktop