Http protocol Content-Type

Details: HTTPS: //www.cnblogs.com/ranyonsue/p/5984001.html

***** Referer: contains a URL, the page of the user from accessing the page URL represents the current request.

***** User-Agent: browser type, if the contents of the return Servlet browser type related to the value is useful;

*****Content-Type

1, common media format type as follows:

1 text / HTML: HTML format
 2 text / Plain: plain text     
 3 text / xml: XML format
 4 Image / GIF: GIF picture format   
 5 Image / jpeg: JPG picture format
 6 Image / PNG: PNG image format

2, beginning with application of media format type:

. 1 file application / XHTML + XML: XHTML format
 2 file application / XML: the XML data format
 . 3 file application / Atom + XML: the Atom the XML syndication format   
 . 4 file application / JSON: the JSON data format
 . 5 file application / PDF: PDF format 
 . 6 file application / MSWord: Word document format
 7 file application / OCTET - Uninterpreted stream: binary data stream (such as the common file download)
 . 8 file application / X-WWW-form-urlencoded: <form encType = ""> the default encType, form form data sent is encoded as a key / value format to the server (the default form submission data format)

3, another common media format is used when uploading documents:

. 1 multipart / form-Data: when a file upload is required in the form, it is necessary to use the format

 

Guess you like

Origin www.cnblogs.com/wt7018/p/11544011.html