4D v16.3WEB SET HTTP HEADER |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
WEB SET HTTP HEADER
WEB SET HTTP HEADER
The WEB SET HTTP HEADER command allows you to set the fields in the HTTP header of the reply sent to the Web browser by 4D. It only has an effect in a Web process. Two syntaxes are available for this command:
Here is an example of a custom “cookie”:
C_TEXT($vTcookie) Note: The command will not accept a literal text type constant as the header parameter; it must be a 4D variable or field. For more information about the syntax, please refer to the R.F.Cs (Request For Comments) that can be found at the following Internet address: http://www.w3c.org.
fieldArray{1}:="X-VERSION" * The first two items are the first line of the reply. When they are entered, they must be the first and second items of the arrays. However, it is possible to omit them and to write only the following (4D will handle the header format):
fieldArray{1}:="Set-Cookie" If you do not specify a state, it will automatically be HTTP/1.0 200 OK. By default, the Server field is "4D/<version>". The Date and Content-Length fields are also set by default by 4D.
See also
|
PROPERTIES
Product: 4D HISTORY
Modified: 4D v6.8 ARTICLE USAGE
4D Language Reference ( 4D v16) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||