When your applications returns from the Get Event, Post Event, Put Event and Request Event, the WebServer control will automatically generate a response header. If you provide any of these in your event processing, they will not be replaced.
The Last-Modified header field will be constructed from the date found on the file referred to by
Response.Body.UniqueName. If this is an empty string (the body is in a memory buffer), then the current date is used:
"Last-Modified: <RFC1123 Date/Time Format>"
The Date header field will be constructed from the system time:
"Date: <RFC1123 Date/Time Format>"
The Server header field will look like:
"Server: PowerTCP Web Server/1.0"
"Content-Length: <number of bytes>"
The Content-Type header field is constructed from the file suffix found in
Response.Body.FileName if it matches one of the following values:
{".txt", "Content-Type: text/plain"},
{".doc", "Content-Type: application/msword"},
{".mcw", "Content-Type: application/msword"},
{".exe", "Content-Type: application/octet-stream"},
{".wav", "Content-Type: audio/microsoft-wav"},
{".wri", "Content-Type: application/microsoft-group"},
{".zip", "Content-Type: application/zip"},
{".rtf", "Content-Type: application/msword"},
{".pdf", "Content-Type: application/pdf"},
{".ps", "Content-Type: application/postscript"},
{".eps", "Content-Type: application/postscript"},
{".jpg", "Content-Type: image/jpeg"},
{".jfif","Content-Type: image/jpeg"},
{".tif", "Content-Type: image/tiff"},
{".mpg", "Content-Type: video/mpeg"},
{".mpeg","Content-Type: video/mpeg"},
{".mov", "Content-Type: video/quicktime"},
{".qt", "Content-Type: video/quicktime"},
{".htm", "Content-Type: text/html"},
{".html","Content-Type: text/html"},
{".lst", "Content-Type: text/plain"},
{".asc", "Content-Type: text/plain"},
{".bas", "Content-Type: text/plain"},
{".bat", "Content-Type: text/plain"},
{".c", "Content-Type: text/plain"},
{".cmd", "Content-Type: text/plain"},
{".cp", "Content-Type: text/plain"},
{".cpp", "Content-Type: text/plain"},
{".faq", "Content-Type: text/plain"},
{".for", "Content-Type: text/plain"},
{".h", "Content-Type: text/plain"},
{".hpx", "Content-Type: application/mac-binhex40"},
{".ini", "Content-Type: text/plain"},
{".m3", "Content-Type: text/plain"},
{".me", "Content-Type: text/plain"},
{".mak", "Content-Type: text/plain"},
{".met", "Content-Type: text/plain"},
{".out", "Content-Type: text/plain"},
{".p", "Content-Type: text/plain"},
{".pas", "Content-Type: text/plain"},
{".prn", "Content-Type: text/plain"},
{".tx8", "Content-Type: text/plain"},
{".wp", "Content-Type: application/wordperfect5.1"},
{".wp5", "Content-Type: application/wordperfect5.1"},
{".qcp", "Content-Type: audio/vnd.qcelp"},
{".xls", "Content-Type: application/vnd.ms-excell"},
{".ppt", "Content-Type: application/vnd.ms-powerpoint"},
{".arc", "Content-Type: application/x-gzip"},
{".art", "Content-Type: application/x-gzip"},
{".822", "Content-Type: message/rfc822"},
{".eml", "Content-Type: message/rfc822"}};