home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / srev13g.zip / MEDIATYP.RX0 < prev    next >
Text File  |  1998-12-02  |  2KB  |  51 lines

  1. /* 2 Dec 1998: User defined mimetypes
  2.  
  3.    SRE-http looks here if it can't determine a mimetype from it's 
  4.    built-in list of "extension-to-mimetype" mappings
  5.  
  6.   You can add entries to this file using two different styles:
  7.  
  8.   1) Old style (pre ver 1.3b.1298a
  9.            known.xxx  =  'type/subtype'
  10.      For example:
  11.           known.listing = 'text/plain'
  12.       Which means: all files with a .listing extension are treated as text/plain mimetype.
  13.  
  14.       For more complicated extensions (containing non-alphanumeric characters)
  15.       you should use 2 statements:
  16.             tmp1='AN-EXTENSION' ; known.tmp1='type/subtype'
  17.       For example:
  18.           tmp1='HTML-SSI' ; known.tmp1='text/html'
  19.       CAUTION: The value of the  "tmp1" variable must be capitalized
  20.  
  21.   2) New style (1.3b.1298a and above)
  22.         type=type/subtype  exts=ext1,ext2,...,extn
  23.      For example:
  24.          type=text/plain  exts=C,FOR,PAS,ASM,BAS
  25.      Which means: all files with extensions of .C, .FOR, .PASC, .ASM, and .BAS are
  26.                   assumed have a mimetype of text/plain.
  27.        
  28.  
  29.  Notes:
  30.     * To set the default (no extension) type, set KNOWN.='type/subtype'
  31.     * You can intermix both styles
  32.     * The case of the type/subtype is retained (it's value is returned to
  33.       the client in a Content-Type response header).
  34.     * See SREHTTP.FAQ for a discussion of other ways of setting mimetypes.
  35.     * The list of "default" mimetypes is contained in the MEDIATYP.SRF file,
  36.       which is in SRE-http's LIB directory).
  37.     * Tech note: SRE-http parses this file and creates MEDIATYP.TMP in the
  38.       SRE-http "temporary data" directory (i.e.; \GOSERVE\TEMP).  
  39.       Hence, MEDIATYP.TMP is used when a default extension-to-mimetype mapping
  40.       does not exist.
  41.       As with other SRE-http parameters, MEDIATYP.TMP is regenerated
  42.       whenever MEDIATYP.RXX changes (SRE-http checks about every 15 seconds
  43.       for changes to parameter files).
  44.    
  45. */
  46. tmp1='HTML-SSI'
  47. known.tmp1='text/html'
  48. type text/html exts=HTM-SSI
  49. known.listing='text/plain'
  50.  
  51.