com.HttpPart.getHeader
Returns a named HTTP multipart header as a string.
Syntax
getHeader(
name STRING )
RETURNS STRING
- name specifies the name of the header part.
Usage
Use this method to retrieve HTTP multipart headers.
The method returns the value for the header part specified by name.
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, use
the security.RandomGenerator.CreateUUIDString method.
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 = httppart.getHeader("MyClientHeader")