com.HttpPart.getHeaderValue

Retrieve the value of an HTTP multipart header as a string, where the multipart header is specified by its position.

Syntax

getHeaderValue(
   pos INTEGER )
  RETURNS STRING
  1. pos specifies the position of the multipart header.

Usage

Use this method to retrieve the value of an HTTP multipart header as a string.

The method returns the value for the header part specified by its position.

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 str = httppart.getHeaderValue(3)