Content-type header field

This header field contains media-type and subtype values. The media type is the general type of the data, and the subtype is a specific format.

Media type can have the following values:

  • text
  • image
  • audio
  • video
  • application
  • message
  • multipart
  • x-* - where * can be any token

The values are not case sensitive.

The Content-Type header field can be followed by any number of attributes.

For example:


Content-Type:  text/plain; charset=us-ascii <CR><LF>

The value of the attributes can be enclosed in double quotes.

If the Content-Type is not specified it defaults to:


text/plain, charset=us-ascii