com.HTTPResponse.getHeader

Returns the value of the HTTP header name, or NULL if there is none.

Syntax

getHeader(
   name STRING )
  RETURNING result STRING
  1. name is the name of the HTTP header.

Usage

The getHeader() method returns the value of the HTTP header identified by the name parameter, or NULL if no header is defined for this name.

In case of error, the method throws an exception and sets the STATUS variable with the appropriate error number.