PIMM gate, PARSE_CONTENT_TYPE function

Parses the Content-Type header and picks out selected fields as requested, including the media type and specific parameters. The media type field and charset parameter are converted to lower case if necessary.

Input Parameters

ACTION
Optional parameter
A buffer for the value of the action parameter for the Content-Type header in the specified CCSID. This value always includes the surrounding quotes.
BOUNDARY
Optional parameter
A buffer for the value of the boundary parameter on the Content-Type header in the specified CCSID. This value does not have surrounding quotes.
CCSID
The fullword binary CCSID value. This is used for header value input and output parameters such as CONTENT_ID.
CHARSET
Optional parameter
A buffer for the value of the charset parameter on the Content-Type header in the specified CCSID. This value does not have surrounding quotes.
CONTENT_TYPE
A buffer for the Content-Type header value in the specified CCSID.
MEDIA_TYPE
Optional parameter
A buffer for the value of the media type field for the Content-Type header in the specified CCSID. For example, multipart/related.
START
Optional parameter
A buffer for the value of the start parameter on the Content-Type header in the specified CCSID. This value does not have surrounding quotes.
START_INFO
Optional parameter
A buffer for the value of the start-info parameter on the Content-Type header in the specified CCSID. This value does not have surrounding quotes.
TYPE
Optional parameter
A buffer for the value of the type parameter in the Content-Type header in the specified CCSID. This value does not have surrounding quotes.

Output Parameters

REASON
The following values are returned when RESPONSE is EXCEPTION:
  • OUTPUT_BUFFER_OVERFLOW
  • CCSID_NOT_SUPPORTED
  • MIME_HEADER_ERROR
  • INVALID_CHARACTER
RESPONSE
Indicates whether the domain call was successful. For more information, see RESPONSE parameter on domain interfaces.


dfhs3_PIMMparse_content_type.html | Timestamp icon Last updated: Monday, 5 June 2017