#Encoding=utf-8#python 2.7.10#Xiaodeng#http authoritative Guide#HTTP protocol: Hypertext Transfer Protocol is the protocol scheme used to communicate on the World Wide Web. #Media Type:#http Authoritative Guide 6 page#There are thousands of different data types on the Internet, and HTTP formats a data format label called MIME type for each object to be transmitted over the Web#1) The Web server appends a MIME type to all HTTP object data. #2) When a Web browser retrieves an object from the server, it looks at the relevant MIME types to see if they know how to handle the object. #3) Most browsers can handle hundreds of common types of objects: displaying picture files, parsing and formatting HTML files, and so on. #4) A MIME type is a text marker that represents a primary object type and a specific subtype, separated by a slash. #Common MIME types:#HTML-formatted text documents are marked by the text/html type#normal ASCII text documents are marked by the text/html type#JPEG version of the picture is Image/plain type#gif format picture for image/gif type#Microsoft's PowerPoint presentation file is of type Application/vnd.ms-powerpoint. #zip file is application/x-gzip type#JSON file is Text/json type#XML document is Text/xml type
Mimi Type case:
Media type (MIME type)