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)