Why can the HTTP protocol transmit files other than HTML?

Original link: https://blog.csdn.net/wangjian5748/article/details/593226

1. The main information part of the http protocol is wrapped in html. The http protocol was used to transmit html at the beginning, and only in combination with the MIME protocol can other formats of data be transmitted.

2. http and MIME are two such protocols respectively. MIME can be attached to many other protocols, such as SMTP protocol. Using MIME protocol, information text in special format can be included in the protocol. For example, data in pdf format can be included in http protocol. , it can be opened in the browser, the MIME protocol can be used to include pdf attachments in the mail, and the other protocols that can include MIME data are not clear to me. I think there should be a lot of them, because in principle, This simply contains a special piece of data in a certain format.

3. The browser can be considered as a client used to interpret the http protocol, and the final displayed content is the data in the html format of the http protocol data body part

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325710583&siteId=291194637