STPSRV_HEADER Function
Adds or modifies a header.
| Category: | Character |
|---|
Table of Contents
Syntax
Required Arguments
Header Name
is the name of the header to set or reset.
Header Value
is the new value for the header.
Details
The STPSRV_HEADER function enables automatic header generation. You can add a header to the default list or modify an existing header from the list. When you modify the value of an existing header, the old value becomes the return value of the function.
The automatic header generation feature recognizes Output Delivery System (ODS) output types and
generates appropriate default content-type headers. If no is specified with STPSRV_HEADER, then ODS is not used and no HTTP header is written
to _WEBOUT. A default Content-type:
text/html header is generated. For a list of
commonly used HTTP headers, see Using HTTP Headers.
Example
|
SAS Statements |
Resulting Headers |
|---|---|
|
Content-type: text/html |
|
Content-type: text/html Expires: Thu, 18 Nov 1999 12:23:34 GMT |
|
Content-type: text/html Expires: Thu, 18 Nov 1999 12:23:34 GMT Cache-control: no-cache |
|
Content-type: text/html Cache-control: no-cache |