307
Appendix
B
MIME Types
This appendix discusses the MIME types file. The sections are:
•
Introduction
•
Determining the MIME Type
•
How the Type Affects the Response
•
What Does the Client Do with the MIME Type?
•
Syntax of the MIME Types File
•
Sample MIME Types File
Introduction
The MIME types file in the
config
directory contains mappings between MIME
(Multipurpose Internet Mail Extensions) types and file extensions. For example, the
MIME types file maps the extensions
.html
and
.htm
to the type
text/html
:
type=text/html exts=htm,html
When the Netscape Enterprise Server receives a request for a resource from a
client, it uses the MIME type mappings to determine what kind of resource is being
requested.
MIME types are defined by three attributes: language (
lang
), encoding (
enc
), and
content-type (
type
). At least one of these attributes must be present for each type.
The most commonly used attribute is
type
. The server frequently considers the
type
when deciding how to generate the response to the client. (The
enc
and
lang
attributes are rarely used.)
The default MIME types file is called
mime.types
.
Summary of Contents for ENTERPRISE SERVER 6.0
Page 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 0 November 2001...
Page 134: ...CGI to NSAPI Conversion 134 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 306: ...cinfo 306 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 312: ...Sample MIME Types File 312 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 324: ...Buffered Streams 324 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 332: ...332 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 340: ...340 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 346: ...346 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 352: ...352 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...