AIX | HP-UX | Linux | OS/2 | OS/390 | OS/400 | PTX | SUN | Win NT |
X | X | X | X | X | X | X | X | X |
Purpose
Specifies text for the HTTP header.
You must have this variable set before Net.Data processes any text sent to the Web browser, because Net.Data reads this variable once before displaying text and does not look at it again. Any changes to the DTW_PRINT_HEADER variable are ignored after Net.Data has sent text to the browser.
If you are using DTW_PRINT_HEADER to generate your own headers (DTW_PRINT_HEADER = "NO"), you must either ensure that DTW_REMOVE_WS is set to "NO" or use the DTW_rHEXTOCHAR() built-in function to generate a new line after the HTTP headers.
Specify the value of this variable using a DEFINE statement or with the @DTW_ASSIGN() function.
Values
DTW_PRINT_HEADER="YES"|"NO"
Table 26. DTW_PRINT_HEADER Values
Values | Description |
---|---|
YES | Net.Data prints out the text Content-type: text/html or Content-type: text/xml for the HTTP header. YES is the default. |
NO | Net.Data does not print out an HTTP header. You can generate custom HTTP header information. |
Examples
Example 1: Setting DTW_PRINT_HEADER to NO to customize your own header.
%define DTW_REMOVE_WS="YES" %define DTW_PRINT_HEADER="NO" @DTW_ASSIGN(CRLF, "@DTW_rHEXTOCHAR("0D25")") %HTML(report) { Expires: Thu, 31 Jul 2000 16:00:00 GMT$(CRLF) Content-type: text/html$(CRLF)$(CRLF) The Time is @DTW_rtime() %}