asis files

What are asis files?

asis files as simply files with an extension of .asis. Files with such an extension are treated specially by the server.

What can asis files do?

The server looks at the start of the asis file as uses the information there to return custom header information. This enables you to send custom HTTP headers without requiring the need to use an expensive CGI script.

Use

To just alter the HTTP status code returned, make the top line of the .asis file of the format:
Status: XYZ Desc
where XYZ is a 3 digit HTTP code, eg 203, and Desc is a textual description of the HTTP code, eg Provisional Information.

To have complete control, and to force the server to return the exact contents of the file with no extra header information attached, include an entire HTTP header at the top of the asis file, eg:

HTTP/1.0 200 OK Set-Cookie: PART_NUMBER=ZEUS_SERVER_0001; path=/ MIME-version: 1.0 Content-Type: text/html Last-Modified: Tuesday, 14-Nov-95 03:30:12 GMT Expires: Tuesday, 14-Nov-95 03:30:12 GMT Proxy: No-cache <html> <head> <title>Zeus Technology Ltd</title> </head>
Back to the features index