home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


Book HomePerl & LWPSearch this book

Appendix C. Common MIME Types

Every HTTP response that's more than just headers must specify a MIME type via the Content-Type header (accessible as $response->content_type( )). Here is a list of the usual MIME type for each of the most common file types on the Internet. The items are sorted alphabetically by the usual extensions.

Regrettably, this list is neither complete nor authoritative, as there are more file types in use than those given "official" MIME types. For more information, see HTTP: The Definitive Guide (O'Reilly). Also consider the mime.types file that comes with Apache and/or your browser's "Helper Applications" configuration menus. For the list of official MIME types, see http://www.isi.edu/in-notes/iana/assignments/media-types/.

Extension

MIME type

.au

audio/basic

.avi

video/msvideo, video/avi, video/x-msvideo

.bmp

image/bmp

.bz2

application/x-bzip2

.css

text/css

.dtd

application/xml-dtd

.doc

application/msword

.exe

application/octet-stream

.gif

image/gif

.gz

application/x-gzip

.hqx

application/mac-binhex40

.html

text/html

.jar

application/java-archive

.jpg

image/jpeg

.js

application/x-javascript

.midi

audio/x-midi

.mp3

audio/mpeg

.mpeg

video/mpeg

.ogg

audio/vorbis, application/ogg

.pdf

application/pdf

.pl

application/x-perl

.png

image/png

.ppt

application/vnd.ms-powerpoint

.ps

application/postscript

.qt

video/quicktime

.ra

audio/x-pn-realaudio, audio/vnd.rn-realaudio

.ram

audio/x-pn-realaudio, audio/vnd.rn-realaudio

.rdf

application/rdf, application/rdf+xml

.rtf

application/rtf

.sgml

text/sgml

.sit

application/x-stuffit

.svg

image/svg+xml

.swf

application/x-shockwave-flash

.tar.gz

application/x-tar

.tgz

application/x-tar

.tiff

image/tiff

.tsv

text/tab-separated-values

.txt

text/plain

.wav

audio/wav, audio/x-wav

.xls

application/vnd.ms-excel

.xml

application/xml

.zip

application/zip, application/x-compressed-zip



Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.