1 | /* |
---|
2 | * mime.c -- Web server mime types |
---|
3 | * |
---|
4 | * Copyright (c) GoAhead Software Inc., 1995-2000. All Rights Reserved. |
---|
5 | * |
---|
6 | * See the file "license.txt" for usage and redistribution license requirements |
---|
7 | */ |
---|
8 | |
---|
9 | /******************************** Description *********************************/ |
---|
10 | |
---|
11 | /* |
---|
12 | * Mime types and file extensions. This module maps URL extensions to |
---|
13 | * content types. |
---|
14 | */ |
---|
15 | |
---|
16 | /********************************* Includes ***********************************/ |
---|
17 | |
---|
18 | #include "wsIntrn.h" |
---|
19 | |
---|
20 | /******************************** Global Data *********************************/ |
---|
21 | /* |
---|
22 | * Addd entries to the MimeList as required for your content |
---|
23 | */ |
---|
24 | |
---|
25 | websMimeType websMimeList[] = { |
---|
26 | { T("application/java"), T(".class") }, |
---|
27 | { T("application/java"), T(".jar") }, |
---|
28 | { T("text/html"), T(".asp") }, |
---|
29 | { T("text/html"), T(".htm") }, |
---|
30 | { T("text/html"), T(".html") }, |
---|
31 | { T("image/gif"), T(".gif") }, |
---|
32 | { T("image/jpeg"), T(".jpg") }, |
---|
33 | { T("text/css"), T(".css") }, |
---|
34 | { T("text/plain"), T(".txt") }, |
---|
35 | |
---|
36 | #if MORE_MIME_TYPES |
---|
37 | { T("application/binary"), T(".exe") }, |
---|
38 | { T("application/compress"), T(".z") }, |
---|
39 | { T("application/gzip"), T(".gz") }, |
---|
40 | { T("application/octet-stream"), T(".bin") }, |
---|
41 | { T("application/oda"), T(".oda") }, |
---|
42 | { T("application/pdf"), T(".pdf") }, |
---|
43 | { T("application/postscript"), T(".ai") }, |
---|
44 | { T("application/postscript"), T(".eps") }, |
---|
45 | { T("application/postscript"), T(".ps") }, |
---|
46 | { T("application/rtf"), T(".rtf") }, |
---|
47 | { T("application/x-bcpio"), T(".bcpio") }, |
---|
48 | { T("application/x-cpio"), T(".cpio") }, |
---|
49 | { T("application/x-csh"), T(".csh") }, |
---|
50 | { T("application/x-dvi"), T(".dvi") }, |
---|
51 | { T("application/x-gtar"), T(".gtar") }, |
---|
52 | { T("application/x-hdf"), T(".hdf") }, |
---|
53 | { T("application/x-latex"), T(".latex") }, |
---|
54 | { T("application/x-mif"), T(".mif") }, |
---|
55 | { T("application/x-netcdf"), T(".nc") }, |
---|
56 | { T("application/x-netcdf"), T(".cdf") }, |
---|
57 | { T("application/x-ns-proxy-autoconfig"), T(".pac") }, |
---|
58 | { T("application/x-patch"), T(".patch") }, |
---|
59 | { T("application/x-sh"), T(".sh") }, |
---|
60 | { T("application/x-shar"), T(".shar") }, |
---|
61 | { T("application/x-sv4cpio"), T(".sv4cpio") }, |
---|
62 | { T("application/x-sv4crc"), T(".sv4crc") }, |
---|
63 | { T("application/x-tar"), T(".tar") }, |
---|
64 | { T("application/x-tcl"), T(".tcl") }, |
---|
65 | { T("application/x-tex"), T(".tex") }, |
---|
66 | { T("application/x-texinfo"), T(".texinfo") }, |
---|
67 | { T("application/x-texinfo"), T(".texi") }, |
---|
68 | { T("application/x-troff"), T(".t") }, |
---|
69 | { T("application/x-troff"), T(".tr") }, |
---|
70 | { T("application/x-troff"), T(".roff") }, |
---|
71 | { T("application/x-troff-man"), T(".man") }, |
---|
72 | { T("application/x-troff-me"), T(".me") }, |
---|
73 | { T("application/x-troff-ms"), T(".ms") }, |
---|
74 | { T("application/x-ustar"), T(".ustar") }, |
---|
75 | { T("application/x-wais-source"), T(".src") }, |
---|
76 | { T("application/zip"), T(".zip") }, |
---|
77 | { T("audio/basic"), T(".au snd") }, |
---|
78 | { T("audio/x-aiff"), T(".aif") }, |
---|
79 | { T("audio/x-aiff"), T(".aiff") }, |
---|
80 | { T("audio/x-aiff"), T(".aifc") }, |
---|
81 | { T("audio/x-wav"), T(".wav") }, |
---|
82 | { T("audio/x-wav"), T(".ram") }, |
---|
83 | { T("image/ief"), T(".ief") }, |
---|
84 | { T("image/jpeg"), T(".jpeg") }, |
---|
85 | { T("image/jpeg"), T(".jpe") }, |
---|
86 | { T("image/tiff"), T(".tiff") }, |
---|
87 | { T("image/tiff"), T(".tif") }, |
---|
88 | { T("image/x-cmu-raster"), T(".ras") }, |
---|
89 | { T("image/x-portable-anymap"), T(".pnm") }, |
---|
90 | { T("image/x-portable-bitmap"), T(".pbm") }, |
---|
91 | { T("image/x-portable-graymap"), T(".pgm") }, |
---|
92 | { T("image/x-portable-pixmap"), T(".ppm") }, |
---|
93 | { T("image/x-rgb"), T(".rgb") }, |
---|
94 | { T("image/x-xbitmap"), T(".xbm") }, |
---|
95 | { T("image/x-xpixmap"), T(".xpm") }, |
---|
96 | { T("image/x-xwindowdump"), T(".xwd") }, |
---|
97 | { T("text/html"), T(".cfm") }, |
---|
98 | { T("text/html"), T(".shtm") }, |
---|
99 | { T("text/html"), T(".shtml") }, |
---|
100 | { T("text/richtext"), T(".rtx") }, |
---|
101 | { T("text/tab-separated-values"), T(".tsv") }, |
---|
102 | { T("text/x-setext"), T(".etx") }, |
---|
103 | { T("video/mpeg"), T(".mpeg mpg mpe") }, |
---|
104 | { T("video/quicktime"), T(".qt") }, |
---|
105 | { T("video/quicktime"), T(".mov") }, |
---|
106 | { T("video/x-msvideo"), T(".avi") }, |
---|
107 | { T("video/x-sgi-movie"), T(".movie") }, |
---|
108 | #endif |
---|
109 | { NULL, NULL}, |
---|
110 | }; |
---|
111 | |
---|
112 | /*****************************************************************************/ |
---|