MIME Types List


Hits: 3554  

MIME stands for “Multipurpose Internet Mail Extensions”. It’s a way of identifying files on the Internet according to their nature and format. “Content-type” header value defined in the HTTP response, the browser can open the file with the proper extension/plugin/tool.

“Internet Media Type” is the same as a MIME type. MIME types were originally created for emails sent using the SMTP protocol.

The “Content-type” is simply a header defined in many protocols, such as HTTP, that makes use of MIME types to specify the nature of the file currently being handled.

Content-type Header

Setting the Content-type in ASP:
<% response.ContentType="text/html" %>

Setting the Content-type in C#:
response.ContentType = “text/plain”;

Setting the Content-type in Java:
response.setContentType(“text/plain”);

Setting the Content-type in Perl/CGI:
print “Content-type:text/html”;

Setting the Content-type in PHP:

<?php header('Content-type: text/html');?>

 

Better Understanding:

The “x-” prefix of a MIME subtype simply means not registered with the “Internet Assigned Numbers Authority”.

The “vnd” prefix means that the MIME value is vendor specific.

 

Download List of MIME types / Internet Media Types

PHP Mime Header for M3U8 iOS media streams..
header(“content-type: application/vnd.apple.mpegurl”);

 

Convert HTML Table to CSV / Excel using HTML2CSV.

Published by

Sandeep Verma

I’m an Entrepreneur. I’m proud to work as Blogger, LAMP Programmer, Linux Admin, Web Consultant, Cloud Manager, Apps Developer, Searcher. Concentrate > Observe > Imagine > Launch