Help - Request:/Header/Out Variables | ||
---|---|---|
When creating a reply back to the client, the entire list of variables within this directory is sent. Read the API Reference Manual for assistance.
ServerFind(parcel, "Request:/Header/Out", &header); ServerNewText(header, "YourHeaderName", value);
ServerWriteText(header, "Request:/Header/Out/Content-type", "text/x-server-parsed-html");
Request:/Header/Out/
Setting | Explanation | Default / | Example Data | Type Access | R,W,A,D Content-Encoding
|
Normally empty because most browsers don't support encoding.
| x-gzip
| Text | R,W
| Content-Length
|
The length of the reply, set automatically by PowerWeb.
| 234
| Integer | R,W
| Content-Type
|
The MIME datatype.
| text/html
| Text | R,W
| Date
|
The message origination date and time in GMT (only if timezone was set).
| Fri, 01-Sep-95 12:34:56 GMT
| Text | R
| Last-Modified
|
Should be set to the date and time of the last modification of the
file being sent, or of the data being extracted from the database.
| Fri, 01-Sep-95 12:34:56 GMT
| Text | R,W
| Location
|
The alternative URL which the client should retrieve instead of the one
originally requested.
| http://xyz.com/home.html
| Text | R,W
| MIME-version
|
The version of the MIME format supported by this server.
| MIME/1.0
| Text | R
| Server
|
The name and version of the server.
| PowerWeb/2.07
| Text | R
| |
---|