WEB CLOSE
Completes the application's use of a connection to a server for CICS® as an HTTP client.
Syntax
Conditions: NOTOPEN
Description
WEB CLOSE notifies CICS that the application program has finished using a client HTTP connection to a server. The session token represents the application's use of the connection. After the application issues the WEB CLOSE command, the specified session token is no longer valid for use. The session token is required to receive a response from the server and to read the HTTP headers for the response, so the WEB CLOSE command should not be issued until all interaction with the server and with the response that it sends is complete.
Options
- SESSTOKEN(data-value)
- Specifies the session token, an 8-byte binary value that uniquely identifies an application's use of a client HTTP connection between CICS and a server. This value is returned by a WEB OPEN command for CICS as an HTTP client. When you issue the WEB CLOSE command for the connection identified by the session token, CICS clears the data associated with the application's use of the connection, and makes the session token invalid for further use by the application program.
Conditions
- 19 NOTOPEN
- RESP2 values:
- 27
- Invalid session token.
- 144
- One or more of the Web command parameters is invalid.
