This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
Web Server
|
Constant | Type | Value | Comment | |||||||||
wdl disable web log | Longint | 0 | Web HTTP debug log is disabled |
|||||||||
wdl enable with all body parts | Longint | 7 | Web HTTP debug log is enabled with body parts in response and request | |||||||||
wdl enable with request body | Longint | 5 | Web HTTP debug log is enabled with body part in request only | |||||||||
wdl enable with response body | Longint | 3 | Web HTTP debug log is enabled with body part in response only | |||||||||
wdl enable without body | Longint | 1 | Web HTTP debug log is enabled without body parts (body size is provided in this case) | |||||||||
Web character set | Longint | 17 | Scope: 4D local, 4D Server Description: Character set that the 4D Web Server (with 4D in local mode and 4D Server) should use to communicate with browsers connecting to the database. The default value actually depends on the language of the operating system. This parameter is set in the Database settings. Possible values: The possible values depend on the operating mode of the database relating to the character set.
|
|||||||||
Web Client IP address to listen | Longint | 23 | Scope: 4D remote machine Possible values: See Web IP address to listen Description: Used to specify this parameter for a remote 4D used as Web Server (applied to the remote web server only). |
|||||||||
Web CORS enabled | Longint | 92 | Scope: Local Web server Possible values: 0 (disabled, default) or 1 (enabled) |
|||||||||
Web CORS settings | Longint | 93 | Scope: Local Web server
|
|||||||||
Web debug log | Longint | 84 | Scope: Local Web server Note: If the HTTP server is restarted, a new log file is used Description: Allows you to get or set the status of the HTTP request log file of the 4D Web server. When enabled, this file, named "HTTPDebugLog_nn.txt", is stored in the "Logs" folder of the application (nn is the file number). It is useful for debugging issues related to the Web server. It records each request and each response in raw mode. Whole requests, including headers, are logged; optionally, body parts can be logged as well. For more information on the HTTPDebugLog files, please refer to the Description of log files section. Values: One of the constants prefixed with "wdl" (refer to the descriptions of these constants in this theme). Default value: 0 (not enabled) |
|||||||||
Web HSTS enabled | Longint | 86 | Scope: 4D local, 4D Server. Description: HTTP Strict Transport Security (HSTS) status. HSTS allows the 4D Web server to declare that browsers should only interact with it via secure HTTPS connections. Once activated, the 4D Web server will automatically add HSTS-related information to all response headers. Browsers will record the HSTS information the first time they receive a response from the 4D Web server, then any future HTTP requests will automatically be transformed into HTTPS requests. The length of time this information is stored by the browser is specified with the Web HSTS max age selector. HSTS requires that HTTPS is enabled on the server. HTTP must also be enabled to allow client initial connections. Possible values: 0 (disabled, default) or 1 (enabled) Note: The 4D Web server must be restarted for this setting to be applied. |
|||||||||
Web HSTS max age | Longint | 87 | Scope: 4D local, 4D Server Description: Specifies the maximum length of time (in seconds) that HSTS is active for each new client connection. This information is stored on the client side for the specified duration. Possible values: Longint (seconds) Default value: 63072000 (2 years) Warning: Once HSTS is enabled, client connections will continue to use this mechanism for the specified duration. When you are testing your applications, it is recommended to set a short duration to be able to switch between secured and non-secured connection modes if necessary. |
|||||||||
Web HTTP compression level | Longint | 50 | Scope: Local Web server Description: Compression level for all compressed HTTP exchanges for the 4D HTTP server (client requests or server replies, Web and Web Service). This selector lets you optimize exchanges by either privileging speed of execution (less compression) or the amount of compression (less speed). The choice of a value depends on the size and type of data exchanged. Pass 1 to 9 in the value parameter where 1 is the fastest compression and 9 the highest. You can also pass -1 to get a compromise between speed and rate of compression. By default, the compression level is 1 (faster compression). Possible values: 1 to 9 (1 = faster, 9 = more compressed) or -1 = best compromise. |
|||||||||
Web HTTP compression threshold | Longint | 51 | Scope: Local HTTP server Description: In the framework of optimized HTTP exchanges, size threshold for requests below which exchanges should not be compressed. This setting is useful in order to avoid losing machine time by compressing small exchanges. Possible values: Any Longint type value. Pass the size expressed in bytes in vaue. By default, the compression threshold is set to 1024 bytes |
|||||||||
Web HTTP enabled | Longint | 88 | Scope: 4D local, 4D Server Description: Status for communication over HTTP. Possible values: 0 (disabled) or 1 (enabled) |
|||||||||
Web HTTP TRACE | Longint | 85 | Scope: Local Web server Description: Allows you to disable or enable the HTTP TRACE method in the 4D Web server. For security reasons, starting with 4D v15 R2, by default the 4D Web server rejects HTTP TRACE requests with an error 405 (see HTTP TRACE disabled). If necessary, you can enable the HTTP TRACE method for the session by passing this constant with value 1. When this option is enabled, the 4D Web server replies to HTTP TRACE requests with the request line, header, and body. Possible values: 0 (disabled) or 1 (enabled) Default value: 0 (disabled) |
|||||||||
Web HTTPS enabled | Longint | 89 | Scope: 4D local, 4D Server Description: Status for communication over HTTPS. Possible values: 0 (disabled) or 1 (enabled) |
|||||||||
Web HTTPS port ID | Longint | 39 | Scope: 4D local, 4D Server Description: TCP port number used by the Web server of 4D in local mode and of 4D Server for secure connections via TLS (HTTPS protocol). The HTTPS port number is set on the “Web/Configuration” page of the Database settings dialog box. By default, the value is 443 (standard value). You can use the constants of the TCP Port Numbers theme for the value parameter. Possible values: 0 to 65535 |
|||||||||
Web inactive process timeout | Longint | 78 | Compatibility: This selector is ignored when the Web scalable session mode or "No sessions" mode is enabled. |
|||||||||
Web inactive session timeout | Longint | 72 | Compatibility: This selector is ignored when the Web scalable session mode is enabled. |
|||||||||
Web IP address to listen | Longint | 16 | Scope: 4D local, 4D Server Description: IP address on which the 4D Web server will receive HTTP requests with 4D in local mode and 4D Server. By default, no specific address is defined. This parameter can be set in the Database settings. This selector is useful for 4D Web Servers compiled and merged with 4D Desktop (in which there is no access to the Design mode). Possible values: IP address string. Both IPv6 string formats (e.g. "2001:0db8:0000:0000:0000:ff00:0042:8329") and IPv4 string formats (e.g. "123.45.67.89") are supported. Note: By compatibility, deprecated IPv4 addresses expressed as hexadecimal longints are still supported. |
|||||||||
Web legacy session | Longint | 70 | Scope: Local Web server |
|||||||||
Web log recording | Longint | 29 | Scope: 4D local, 4D Server Description: Starts or stops the recording of Web requests received by the Web server of 4D in local mode or 4D Server. By default, the value is 0 (requests not recorded). The log of Web requests is stored as a text file named "logweb.txt" that is automatically placed in the Logs folder of the database, next to the structure file. The format of this file is determined by the value that you pass. For more information about Web log file formats, please refer to the Information about the Web Site section. This file can also be activated on the "Web/Log" page of the Database settings. Possible values: 0 = Do not record (default), 1 = Record in CLF format, 2 = Record in DLF format, 3 = Record in ELF format, 4 = Record in WLF format. Warning: Formats 3 and 4 are custom formats whose contents must be set beforehand in the Database settings. If you use one of these formats without any of its fields having been selected on this page, the log file will not be generated. |
|||||||||
Web max concurrent processes | Longint | 18 | Compatibility: This selector is ignored when the Web scalable session mode is enabled. |
|||||||||
Web max sessions | Longint | 71 | Scope: Local Web server Description: Limits the number of simultaneous sessions. When you reach the limit set, the oldest session is closed (and On Web Legacy Close Session database method is called) if the Web server needs to create a new one. Possible values: Longint. The number of simultaneous sessions cannot exceed the total number of Web processes (Web Max Concurrent Processes option, 100 by default) Default value: 100 (pass 0 to restore the default value) |
|||||||||
Web maximum requests size | Longint | 27 | Scope: 4D local, 4D Server |
|||||||||
Web port ID | Longint | 15 | Scope: 4D in local mode and 4D Server. Description: Sets or gets the number of the TCP port used by the 4D Web server with 4D in local mode and 4D Server. By default, the value is 80. The TCP port number is set on the "Web/Configuration" page of the Database Settings dialog box. You can use one of the constants in the TCP Port Numbers theme for the value parameter. This selector is useful within the framework of 4D Web servers that are compiled and merged using 4D Desktop (no access to the Design environment). Possible values: For more information about the TCP port number, refer to the Web Server Settings section. Default value: 80 |
|||||||||
Web scalable session | Longint | 90 | Scope: Local Web server |
|||||||||
Web server database | Longint | 1 | Current database Web server (default if omitted) |
|||||||||
Web server host database | Longint | 2 | Web server of the host database of a component |
|||||||||
Web server receiving request | Longint | 3 | Web server that received the request (target Web server) |
|||||||||
Web session cookie domain | Longint | 81 | Scope: local Web server Description: Sets or gets the value of the "domain" field of the session cookie. This selector (as well as selector 82) is useful for controlling the scope of the session cookies: If you set, for example, the value "/*.4d.fr" for this selector, the client will only send a cookie when the request is addressed to the domain ".4d.fr", which excludes servers hosting external static data. Possible values: Text |
|||||||||
Web session cookie name | Longint | 73 | Compatibility: This selector is ignored when the Web scalable session mode is enabled. |
|||||||||
Web session cookie path | Longint | 82 | Scope: local Web server Description: Sets or gets the value of the "path" field of the session cookie. This selector (as well as selector 81) is useful for controlling the scope of the session cookies: If you set, for example, the value "/4DACTION" for this selector, the client will only send a cookie for dynamic requests beginning with 4DACTION, and not for pictures, static pages, etc. Possible values: Text |
|||||||||
Web session enable IP address validation | Longint | 83 | Compatibility: This selector is ignored in the Web scalable session mode (there is no validation in this mode). |
Product: 4D
Theme: List of constant themes
Modified: 4D v16 R4
Modified: 4D v17
Modified: 4D v18 R4
4D Language Reference ( 4D v20 R7)