Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Change HTTP Attributes (CHGHTTPA) command is used to change the configurable World Wide Web Hypertext Transfer Protocol (HTTP) server attributes. (This server is also known as the IBM HTTP Server).
When you change HTTP attributes using this command, the changes apply to all HTTP servers and HTTP server instances, with the following exceptions:
The changes take effect the next time the HTTP server is started either by the Start TCP/IP (STRTCP) command or by the Start TCP/IP Server (STRTCPSVR) command.
Restrictions
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
AUTOSTART | Autostart | *YES, *NO, *SAME | Optional |
NBRSVR | Number of server threads | Element list | Optional |
Element 1: Minimum | 1-9999, *SAME, *DFT | ||
Element 2: Maximum | 1-9999, *SAME, *DFT, *NOMAX | ||
CCSID | Coded character set identifier | 1-65533, *SAME, *DFT | Optional |
TBLHTTPOUT | Server mapping tables | Single values: *SAME, *CCSID, *DFT Other values: Element list |
Optional |
Element 1: Outgoing EBCDIC/ASCII table | Qualified object name | ||
Qualifier 1: Outgoing EBCDIC/ASCII table | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
TBLHTTPIN | Single values: *SAME, *CCSID, *DFT Other values: Element list |
Optional | |
Element 1: Incoming ASCII/EBCDIC table | Qualified object name | ||
Qualifier 1: Incoming ASCII/EBCDIC table | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB |
Top |
Specifies whether to automatically start the HTTP server when TCP/IP is started by the STRTCP command. When HTTP is started by the STRTCPSVR command, the AUTOSTART parameter is ignored and the HTTP server is started regardless of the value of this parameter. If STRTCPSVR *HTTP is specified, and the HTTP server is already running, then the start request is denied.
Top |
Specifies the minimum and maximum number of HTTP server threads to start when HTTP is started by either the Start TCP/IP (STRTCP) command or the Start TCP/IP Server (STRTCPSVR) command.
Note: The value specified for the minimum number of server threads is ignored. The value has been left on the command for compatibility reasons.
The maximum number of server threads value is used as the default setting for the HTTP Server ThreadsPerChild directive. This value affects all HTTP servers that do not have a ThreadsPerChild configuration directive specified. A ThreadsPerChild directive specified in the HTTP server configuration file, or as a start up value, overrides this server attribute.
See the HTTP server documentation on the ThreadsPerChild directive for more information regarding the maximum number of server threads.
Element 1: Minimum
Element 2: Maximum
Top |
If the character set and code page are not identified in the MIME header from the World Wide Web (WWW) browser, this value is used to determine the ASCII coded-character set identifier (CCSID) value to be used for translations when doing ASCII-to-EBCDIC and EBCDIC-to-ASCII mapping. Mapping is determined using the MIME header values or the specified ASCII CCSID and the EBCDIC default CCSID of the job.
Outgoing and incoming mapping can optionally be done with mapping tables defined in the TBLHTTPOUT and TBLHTTPIN parameters. Normally the TBLHTTPOUT and TBLHTTPIN parameters are set to the default of *CCSID or *DFT, with both indicating that the value used in the CCSID parameter is used for mapping.
If a mapping table is to be used for outgoing mapping, a table object can be specified in the TBLHTTPOUT parameter. Then this table object is used for outgoing mapping instead of the CCSID value.
Incoming mapping can be changed to use a mapping table in the same manner by specifying a table object in the TBLHTTPIN parameter. This mapping table then overrides the specified CCSID value and is used for incoming mapping.
Top |
Specifies the table object that is to be used to map all outgoing server data in HTTP. Outgoing server data is mapped from EBCDIC to ASCII.
If a table object is specified for the TBLHTTPOUT parameter, the table object is used for outgoing mapping. Otherwise, the CCSID parameter is used to determine outgoing mapping.
Single values
Qualifier 1: Outgoing EBCDIC/ASCII table
Qualifier 2: Library
Top |
Specifies the table object that is used to map all incoming server data in HTTP. Incoming server data is mapped from ASCII to EBCDIC.
If a table object is specified for the TBLHTTPIN parameter, the table object is used for incoming mapping. Otherwise, the CCSID parameter is used to determine incoming mapping.
Single values
Qualifier 1: Incoming ASCII/EBCDIC table
Qualifier 2: Library
Top |
Example 1: Changing the HTTP Attributes to Automatically Start the Server When You Use the Start TCP/IP (STRTCP) CL Command.
CHGHTTPA AUTOSTART(*YES)
This command indicates that the server will automatically start up the next time that you use the STRTCP command. Server instances will start automatically if they do not have AUTOSTART overridden.
Example 2: Changing the Maximum Number of Server Threads.
CHGHTTPA NBRSVR(10 50)
This command indicates that a maximum of 50 server threads will be allowed to start to handle incoming HTTP requests. Note that the minimum number of server threads is allowed to be specified, but is ignored.
Example 3: Using the Server Mapping Tables
CHGHTTPA TBLHTTPOUT(*LIBL/TSTHTTPO) TBLHTTPIN(*LIBL/TSTHTTPI)
This command indicates that the next time the server is started, the server will have the following characteristics:
Top |
Top |