4D v13.4WEB SET HTTP HEADER |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
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. The Server, Date and Content-Length fields are always set by 4D. |
PROPERTIES
Product: 4D
INDEX HISTORY
SEE ALSO |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||