com.HTTPPart.getHeader

Setter to handle HTTP multipart headers.

Syntax

getHeader(
   name STRING )
  RETURNS STRING
  1. name specifies the name of the header part.

Usage

Getter to handle HTTP multipart headers.

The method returns the value for the header part specified by name.

Note: In case of related multipart (i.e., the part is multipart/related and set via the com.HTTPRequest.setMultipartType("related",NULL,NULL)), it is mandatory to set a unique Content-ID header. To set up a unique Content-ID header, you can use the security.RandomGenerator.CreateUUIDString method for that.

In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).

Example

LET val = req.getHeader("MyClientHeader")