What is the MIME type and how do I use it? [PHP Code]

MIME (Multipurpose Internet Mail Extensions) type is a standard way of describing a data type in the body of an HTTP message or email. The MIME type is passed in the Content-Type header. For example, the Content-Type: text/html header tells the browser that it received an HTML page. Based on this MIME-type header, the browser can parse and display the received HTML page correctly. Click Send to post a test request to the server and see the server's response MIME type. The PHP code was automatically generated for the Mime Type example.
Loading...