Reference: https: //www.cnblogs.com/Im-Victor/p/9408449.html in Http request, we use every day to specify the Content-type request information in different formats, there will be available to explain the Content-Type value. The MediaType, that is, Internet Media Type, media type; also known as MIME type, in Http protocol message header, a Content-Type to indicate specific information requested media type. For example: the Type-the Content: text / HTML; charset: UTF-. 8; web.header ( 'Content-type', 'text / JSON; charset = UTF-. 8') common media format types are as follows: 1.text / HTML : HTML format 2.text / plain: plain text 3.text / xml: XML format 4.image / gif: gif image formats 5.image / jpeg: jpg picture format 6.image / png: png image format to begin with application media format type: 1.application / XHTML + XML: XHTML format 2.application / xml: XML data format 3.application / atom + xml: Atom XML format polymerization 4.application / json: JSON format data 5.application / pdf: pdf format 6.application / msword: Word document format 7.application / octet-stream: the stream of binary data (such as the common file download) 8.application / X-WWW-form-urlencoded: <form encType = ""> The default encType , form form data is encoded as a key / value format to the server (the default format of the data submission form) another common media format is used to upload documents: 1.multipart / data-form: in the form required when uploading files, you need to use this format
http request header request content-type explain .txt
Guess you like
Origin blog.csdn.net/weixin_42193179/article/details/103974027
Recommended
Ranking