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.
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:
Setting the Content-type in Perl/CGI:
Setting the Content-type in PHP:
<?php header('Content-type: text/html');?>
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.
PHP Mime Header for M3U8 iOS media streams..
Convert HTML Table to CSV / Excel using HTML2CSV.