Examining the HTTP headers for a message
Each HTTP header for a request or response message consists of a header name and header value. CICS® stores this information for the application to access if required. An application can receive the value of a specified header, or browse through the names and values of all the headers for a request or response. You can also convert an architected date and time stamp string taken from a header into the ABSTIME format.
About this task
- The TE header instructs the application whether trailing headers are permitted in a chunked response message.
- Conditional headers can provide instructions to the application, such as to reply only if the response document has changed.
Some HTTP headers contain date and time stamps. CICS provides the CONVERTTIME command to convert common formats for architected date and time stamp strings into the ABSTIME format, for use by the application.
The standard HTTP headers are described in the HTTP/1.1 specification (RFC 2616) and the HTTP/1.0 specification (RFC 1945). HTTP header reference for CICS web support explains the general use of HTTP headers in CICS web support, and the actions that CICS web support takes for specific headers received on messages. CICS ignores some HTTP headers, and the user application must take appropriate action in response. Check the HTTP specification for detailed guidance and requirements about the meaning and correct use of each HTTP header.
If the message includes any trailing headers, you can read these using the EXEC CICS WEB commands in the same way as for standard headers. The Trailer header on the message specifies the names of all the HTTP headers that were sent as trailing headers.
To examine and work with HTTP headers: