Rev 7747 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{mimeTypeExtensions}\alias{mimeTypeExtensions}\docType{data}\title{Mapping from extension to MIME type}\description{This is a programmatically generated character vectorwhose names identify the MIME type typically associated withthe extension which are the values.This is used in \code{\link[RCurl]{guessMIMEType}}.We can match an extension and then find the correspondingMIME type.There are duplicates.}\usage{data(mimeTypeExtensions)}\format{The format is a named character vectorwhere the names are the MIME typesand the values are the fileextensions.}\source{The table of MIME types and extensions was programmatically extractedfrom \samp{http://www.webmaster-toolkit.com/mime-types.shtml} with\code{tbls = readHTMLTable("http://www.webmaster-toolkit.com/mime-types.shtml")tmp = tbls[[1]][-1,]mimeTypeExtensions = structure(as.character(tmp[[2]]), names = gsub("^\\.", "", tmp[[1]]))save(mimeTypeExtensions, file = "data/mimeTypeExtensions.rda")}The IANA list is not as convenient to programmatically compile.%\url{http://www.ltsw.se/knbase/internet/mime.htp}}%\references{}\examples{data(mimeTypeExtensions)}\keyword{datasets}