Module mod_asis

Important: Information for this topic supports the latest PTF levels for HTTP Server for i5/OS . It is recommended that you install the latest PTFs to upgrade to the latest level of the HTTP Server for i5/OS. Some of the topics documented here are not available prior to this update. See http://www.ibm.com/servers/eserver/iseries/software/http/services/service.htm Link outside Information Center for more information.

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>
Note: The server adds a Date: and Server: header to the data returned to the client.