home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
srev13g.zip
/
MEDIATYP.RX0
< prev
next >
Wrap
Text File
|
1998-12-02
|
2KB
|
51 lines
/* 2 Dec 1998: User defined mimetypes
SRE-http looks here if it can't determine a mimetype from it's
built-in list of "extension-to-mimetype" mappings
You can add entries to this file using two different styles:
1) Old style (pre ver 1.3b.1298a
known.xxx = 'type/subtype'
For example:
known.listing = 'text/plain'
Which means: all files with a .listing extension are treated as text/plain mimetype.
For more complicated extensions (containing non-alphanumeric characters)
you should use 2 statements:
tmp1='AN-EXTENSION' ; known.tmp1='type/subtype'
For example:
tmp1='HTML-SSI' ; known.tmp1='text/html'
CAUTION: The value of the "tmp1" variable must be capitalized
2) New style (1.3b.1298a and above)
type=type/subtype exts=ext1,ext2,...,extn
For example:
type=text/plain exts=C,FOR,PAS,ASM,BAS
Which means: all files with extensions of .C, .FOR, .PASC, .ASM, and .BAS are
assumed have a mimetype of text/plain.
Notes:
* To set the default (no extension) type, set KNOWN.='type/subtype'
* You can intermix both styles
* The case of the type/subtype is retained (it's value is returned to
the client in a Content-Type response header).
* See SREHTTP.FAQ for a discussion of other ways of setting mimetypes.
* The list of "default" mimetypes is contained in the MEDIATYP.SRF file,
which is in SRE-http's LIB directory).
* Tech note: SRE-http parses this file and creates MEDIATYP.TMP in the
SRE-http "temporary data" directory (i.e.; \GOSERVE\TEMP).
Hence, MEDIATYP.TMP is used when a default extension-to-mimetype mapping
does not exist.
As with other SRE-http parameters, MEDIATYP.TMP is regenerated
whenever MEDIATYP.RXX changes (SRE-http checks about every 15 seconds
for changes to parameter files).
*/
tmp1='HTML-SSI'
known.tmp1='text/html'
type text/html exts=HTM-SSI
known.listing='text/plain'