Mime Types

 < Free Open Study > 



HTTP clients let the server know the data types that they are able to handle by using the Accept header with the types listed. The server responds by telling the client the type returned in the body by using the Content-Type header field. Clients will also use the Content-Type header field for request methods such as POST and PUT where files may be uploaded to the server.

Media types, or mime types are made up of a small number of types (such as text, application, video etc.) and a much larger number of sub types relating to specific uses or data/file types. MIME stands for Multipurpose Internet Mail Extensions, which were originally developed for e-mail messages, however HTTP uses these for sending files and data as a standard.

Standard HTML files use the text type with the html subtype - given as text/html. The tables below give the mime types for many of the types available.

Application files

type/subtype

File extension

application/dsptype

tsp

application/futuresplash

spl

application/mac-binhex40

hqx

application/mspowerpoint

ppt, ppz, pps, pot

application/msword

doc

application/octet-stream

bin, exe

application/oda

oda

application/pdf

pdf

application/pgp-encrypted

 

application/pgp-keys

 

application/pgp-signature

 

application/postscript

ai, eps, ps

application/rtf

rtf

application/vnd.framemaker

 

application/vnd.lotus-1-2-3

wks, wk1

application/vnd.lotus-approach

 

application/vnd.lotus-freelance

 

application/vnd.lotus-organizer

 

application/vnd.lotus-screencam

scr

application/vnd.lotus-wordpro

 

application/vnd.mif

 

application/vnd.ms-artgalry

 

application/vnd.ms-excel

xls

application/vnd.ms-powerpoint

ppt

application/vnd.ms-project

prj

application/vnd.ms-tnef

 

application/vnd.ms-works

wks

application/vnd.xara

xar

application/vocaltec-media-desc

vmd

application/vocaltec-media-file

vmf

application/wordperfect5.1

 

application/wpc

wpc

application/x-asap

asp

application/x-cdlink

vcd

application/x-chat

chat

application/x-csh

csh

application/x-director

dcr

application/x-director

dir

application/x-director

dxr

application/x-dvi

dvi

application/x-envoy

evy

application/x-hdf

hdf

application/x-java-archive

jar, war, ear

application/x-javascript

js

application/x-java-serialized-object

 

application/x-java-vm

class

application/x-latex

latex

application/x-mif

mif

application/xml

xml

application/xml-dtd

dtd

application/xml-external-parsed-entity

xml

application/x-netcdf

nc, cdf

application/x-sh

sh

application/x-shockwave-flash

swf

application/x-sprite

sprite, spr

application/x-streaming-audio

key

application/x-tar

tar

application/x-tcl

tcl

application/x-tex

tex

application/x-texinfo

texinfo, texi

application/x-troff

t, tr, roff

application/x-troff-man

man

application/x-troff-me

me

application/x-troff-ms

ms

application/x-wais-source

src

application/zip

zip

Audio files

type/subtype

File extension

audio/basic

au, snd

audio/mpeg

mpg, mpeg

audio/tone

 

audio/vnd.lucent.voice

 

audio/vnd.nortel.vbk

 

audio/voxware

vox

audio/x-aiff

aif, aiff, aifc

audio/x-midi

mid, midi

audio/x-mod

mod

audio/x-pn-realaudio

ra, rv

audio/x-pn-realaudio

ram, rm

audio/x-pn-realaudio-plugin

rpm

audio/x-s3m

s3m

audio/x-wav

wav

Image files

type/subtype

File extension

image/cgm

cgm

image/cis-cod

cod

image/fif

fif

image/g3fax

 

image/gif

gif

image/ief

ief

image/jpeg

jpeg, jpg, jpe

image/png

 

image/tiff

tiff, tif

image/vasa

mcf

image/vnd.wap.wbmp

 

image/x-cmu-raster

ras

image/x-portable-anymap

pnm

image/x-portable-bitmap

pbm

image/x-portable-graymap

pgm

image/x-portable-pixmap

ppm

image/x-rgb

rgb

image/x-xbitmap

xbm

image/x-xpixmap

xpm

image/x-xwindowdump

xwd

Messages

type/subtype

File extension

message/delivery-status

 

message/disposition-notification

 

message/external-body

 

message/http

 

message/news

 

message/partial

 

message/rfc822

 

message/s-http

 

Text files

type/subtype

File extension

text/calendar

 

text/css

css

text/directory

 

text/enriched

 

text/html

html htm

text/plain

txt, c, ec

text/richtext

rtx

text/rtf

rtf

text/sgml

sgml

text/tab-separated-values

tsv

text/uri-list

 

text/vnd.curl

curl

text/vnd.wap.wml

wml

text/vnd.wap.wmlscript

wml

text/xml

xml

text/x-setext

etx

text/x-speech

talk, spc

Video/VRML/Model files

type/subtype

File extension

model/vrml

vrml

video/mpeg

mpeg, mpg, mpe

video/quicktime

qt, mov

video/vnd.vivo

vivo, viv

video/x-msvideo

avi

video/x-sgi-movie

movie

x-world/x-vrml

wrl



 < Free Open Study > 



Professional Java Servlets 2.3
Professional Java Servlets 2.3
ISBN: 186100561X
EAN: 2147483647
Year: 2006
Pages: 130

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net