常用 content-Type 整理
常见媒体格式类型
text/html
:HTML格式
text/plain
:纯文本
text/xml
:XML
image/gif
:gif图片格式
image.png
:png图片格式
application开头的媒体格式
application/x-www-form-urlencoded
:键值对方式发送表单
(表单默认提交数据的格式)application/form-data
:表单文件上传
application/xhtml+xml
:XHTML格式
application/xml
:XML数据格式
application/json
:JSON数据格式
application/pdf
:pdf格式
application/msword
:Word文档格式
application/octet-stream
:二进制数据流
(常见文件下载)