Skip to content

Instantly share code, notes, and snippets.

@Fishrock123
Last active December 23, 2015 10:59
Show Gist options
  • Save Fishrock123/6625357 to your computer and use it in GitHub Desktop.
Save Fishrock123/6625357 to your computer and use it in GitHub Desktop.
All common Internet Media Types, in Javascript list form (for testing stuffs).
var content_types = [
'application/atom+xml',
'application/ecmascript',
'application/EDI-X12',
'application/EDIFACT',
'application/json',
'application/javascript',
'application/octet-stream',
'application/ogg',
'application/pdf',
'application/postscript',
'application/rdf+xml',
'application/rss+xml',
'application/soap+xml',
'application/font-woff',
'application/xhtml+xml',
'application/xml',
'application/xml-dtd',
'application/xop+xml',
'application/zip',
'application/gzip',
'audio/basic',
'audio/L24',
'audio/mp4',
'audio/mpeg',
'audio/ogg',
'audio/vorbis',
'audio/vnd.rn-realaudio',
'audio/vnd.wave',
'audio/webm',
'image/gif',
'image/jpeg',
'image/pjpeg',
'image/png',
'image/svg+xml',
'image/tiff',
'message/http',
'message/imdn+xml',
'message/partial',
'message/rfc822',
'model/example',
'model/iges',
'model/mesh',
'model/vrml',
'model/x3d+binary',
'model/x3d+vrml',
'model/x3d+xml',
'multipart/mixed',
'multipart/alternative',
'multipart/related',
'multipart/form-data',
'multipart/signed',
'multipart/encrypted',
'text/cmd',
'text/css',
'text/csv',
'text/html',
'text/javascript',
'text/plain',
'text/vcard',
'text/xml',
'video/mpeg',
'video/mp4',
'video/ogg',
'video/quicktime',
'video/webm',
'video/x-matroska',
'video/x-ms-wmv',
'video/x-flv',
'application/vnd.oasis.opendocument.text',
'application/vnd.oasis.opendocument.spreadsheet',
'application/vnd.oasis.opendocument.presentation',
'application/vnd.oasis.opendocument.graphics',
'application/vnd.ms-excel',
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'application/vnd.ms-powerpoint',
'application/vnd.ms-opentype',
'application/vnd.ms-fontobject',
'application/vnd.openxmlformats-officedocument.presentationml.presentation',
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'application/vnd.mozilla.xul+xml',
'application/vnd.google-earth.kml+xml',
'application/vnd.google-earth.kmz',
'application/vnd.dart',
'application/vnd.android.package-archive',
'application/vnd.ms-xpsdocument',
'application/x-7z-compressed',
'application/x-deb',
'application/x-dvi',
'application/x-font-ttf',
'application/x-javascript',
'application/x-latex',
'application/x-mpegURL',
'application/x-rar-compressed',
'application/x-shockwave-flash',
'application/x-stuffit',
'application/x-tar',
'application/x-www-form-urlencode',
'application/x-xpinstall',
'audio/x-aac',
'audio/x-caf',
'image/x-xcf',
'text/x-gwt-rpc',
'text/x-jquery-tmpl',
'text/x-markdown',
'application/x-pkcs1'
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment