HTTP Content-type Summary

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.