Summary
This module allows file types to be defined such that HTTP Server sends them without adding HTTP headers. mod_asis supports EBCDIC files. The module converts file content from EBCDIC to ASCII. This can be used to send any kind of data from the server, including redirects and other special HTTP responses, without requiring a cgi-script.
Usage
In the server configuration file, define a new mime type called httpd/send-as-is . For example:
AddType httpd/send-as-is asis
This defines the .asis file extension as being of the new httpd/send-as-is mime type. The contents of any file with a .asis extension are then be sent by HTTP Server to the client with almost no changes. Clients will need HTTP headers to be attached. A Status: header is also required; the data should be the 3-digit HTTP response code, followed by a textual message.
Here is an example of a file whose contents are sent asis, telling the client that a file has redirected.
Status: 301 Now where did I leave that URL Location: http://xyz.abc.com/roch/bar.html Content-type: text/html <HTML> <HEAD> <TITLE>Fred's Page</TITLE> </HEAD> <BODY> <H1>Fred's exceptionally wonderful page has moved to <A HREF="http://xyz.abc.com/roch/bar.html">Joe's</A> site. </H1> </BODY> </HTML>