Content-type media type, MIME type, including media format and encoding two parts
Example: Content-type:text/html;charset:utf-8
The common media format types are as follows:
text/html:html format
Text/plain: Plain Text Format
Text/xml:xml format
Image/gif:gif Picture Format
Image/jpeg:jpg Picture Format
Image/png:png Picture Format
Types of media formats that start with application:
application/xhtml+xml:xhtml format
Application/xml:xml data format
Application/atom+xml:atom XML Aggregation format
Application/json:json data format
Application/pdf:pdf format
Application/msword:word Document Format
Application/octet-stream: binary stream data (e.g., common file downloads)
application/x-www-form-urlencoded: <form enctype= "" > Default enctype,form form data is encoded as key/ The value format is sent to the server (the format of the form's default submission data)
Another common media format is used when uploading files:
Multipart/form-data: When you need to upload a file in a form, you need to use that format
These are some of the content-type content formats that we often use in our daily development.
HTTP Content-type Summary