In web development and networking, a Content-Type is a standard HTTP header field used to declare the original media format of a transmitted data payload. Officially termed an IANA media type and widely referred to as a MIME type (Multipurpose Internet Mail Extensions), it tells the recipient—whether it is a web browser or a server—exactly how to interpret and render the incoming data bytes. The Structure of a Content-Type Header
An HTTP Content-Type header consists of a two-part identifier—a top-level type and a specific subtype—separated by a forward slash. It can optionally include additional parameters like the character encoding:
Content-Type: type/subtype; parameter=valueContent-Type: type/subtype; parameter=value
A common real-world example is:Content-Type: text/html; charset=utf-8 Standard Categories of Media Types
Leave a Reply