source: rtems/cpukit/httpd/mime.c @ 19a0136

4.104.114.84.95
Last change on this file since 19a0136 was ee3afa2, checked in by Joel Sherrill <joel.sherrill@…>, on 04/11/03 at 14:46:55

2002-04-10 Mike Siers <mikes@…>

  • rtems_webserver/NOTES, rtems_webserver/asp.c, rtems_webserver/balloc.c, rtems_webserver/default.c, rtems_webserver/ej.h, rtems_webserver/ejIntrn.h, rtems_webserver/ejlex.c, rtems_webserver/ejparse.c, rtems_webserver/emfdb.c, rtems_webserver/emfdb.h, rtems_webserver/form.c, rtems_webserver/h.c, rtems_webserver/handler.c, rtems_webserver/license.txt, rtems_webserver/md5.h, rtems_webserver/md5c.c, rtems_webserver/mime.c, rtems_webserver/misc.c, rtems_webserver/ringq.c, rtems_webserver/rom.c, rtems_webserver/security.c, rtems_webserver/sock.c, rtems_webserver/sym.c, rtems_webserver/uemf.c, rtems_webserver/uemf.h, rtems_webserver/um.c, rtems_webserver/um.h, rtems_webserver/url.c, rtems_webserver/value.c, rtems_webserver/wbase64.c, rtems_webserver/webcomp.c, rtems_webserver/webpage.c, rtems_webserver/webrom.c, rtems_webserver/webs.c, rtems_webserver/webs.h, rtems_webserver/websuemf.c, rtems_webserver/wsIntrn.h: Update to GoAhead? Webserver 2.1.4. The following URL is the release notes from GoAhead?.

http://data.goahead.com/Software/Webserver/2.1.4/release.htm

I have only done a minimal amount of testing (i.e. the network
demo program works fine). Please try this out and let me know
if it works. The patch needs to be applied on the
c/src/libnetworking/rtems_webserver directory.

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