常用Content-type汇总
Content-Type,内容类型,用于定义网络文件的类型和网页的编码,决定浏览器将以什么形式、什么编码读取这个文件。这里汇总一下常用的,所有资料来源于网络,未经测试:
| 文件后缀 | 处理方式 | 
| .* | application/octet-stream | 
| .asp | text/asp | 
| .avi | video/avi | 
| .bmp | application/x-bmp | 
| .css | text/css | 
| .doc | application/msword | 
| .docx | application/vnd.openxmlformats-officedocument.wordprocessingml.template | 
| .exe | application/x-msdownload | 
| .gif | image/gif | 
| .html/.htm/.jsp/.xhtml | text/html | 
| .java | java/* | 
| .jpeg/.jpg | image/jpeg | 
| .jpg | application/x-jpg | 
| .ppt | application/vnd.ms-powerpoint 或 application/x-ppt | 
| .pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | 
| .rmvb | application/vnd.rn-realmedia-vbr | 
| .svg/.xml | text/xml | 
| .swf | application/x-shockwave-flash | 
| .txt | text/plain | 
| .wav | audio/wav | 
| .xls | application/vnd.ms-excel 或 application/x-xls | 
| .xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | 
常用Content-type汇总的更多相关文章
- 转载 SharePoint【Site Definition 系列】– 创建Content Type
		
转载原地址: http://www.cnblogs.com/wsdj-ITtech/archive/2012/09/01/2470274.html Sharepoint本身就是一个丰富的大容器,里面 ...
 - the request doesn't contain a multipart/form-data or multipart/form-data stream, content type header
		
the request doesn't contain a multipart/form-data or multipart/form-data stream, content type header ...
 - Java之POI读取Excel的Package should contain a content type part [M1.13]] with root cause异常问题解决
		
Java之POI读取Excel的Package should contain a content type part [M1.13]] with root cause异常问题解决 引言: 在Java中 ...
 - openssl常用命令行汇总
		
openssl常用命令行汇总 随机数 openssl rand -out rand.dat -base64 32 摘要 直接做摘要 openssl dgst -sha1 -out dgst.dat p ...
 - 常用 Gulp 插件汇总 —— 基于 Gulp 的前端集成解决方案(三)
		
前两篇文章讨论了 Gulp 的安装部署及基本概念,借助于 Gulp 强大的 插件生态 可以完成很多常见的和不常见的任务.本文主要汇总常用的 Gulp 插件及其基本使用,需要读者对 Gulp 有一个基本 ...
 - Jsoup问题---获取http协议请求失败 org.jsoup.UnsupportedMimeTypeException: Unhandled content type. Must be text/*, application/xml, or application/xhtml+xml.
		
Jsoup问题---获取http协议请求失败 1.问题:用Jsoup在获取一些网站的数据时,起初获取很顺利,但是在访问某浪的数据是Jsoup报错,应该是请求头里面的请求类型(ContextType)不 ...
 - ecshop二次开发之常用函数及汇总
		
lib_time.php gmtime()说明:获得当前格林威治时间的时间戳 server_timezone()说明:获得服务器的时区 local_mktime($hour = NULL , $min ...
 - Jsoup获取部分页面数据失败 org.jsoup.UnsupportedMimeTypeException: Unhandled content type. Must be text/*, application/xml, or application/xhtml+xml.
		
用Jsoup在获取一些网站的数据时,起初获取很顺利,但是在访问某浪的数据是Jsoup报错,应该是请求头里面的请求类型(ContextType)不符合要求. 请求代码如下: private static ...
 - SharePoint自动化系列——Add content type to list.
		
转载请注明出自天外归云的博客园:http://www.cnblogs.com/LanTianYou/ 将创建好的content type(若是跨web application需要事先publish c ...
 - SharePoint自动化系列——Content Type相关timer jobs一键执行
		
转载请注明出自天外归云的博客园:http://www.cnblogs.com/LanTianYou/ 背景: 在SharePoint Central Administration->Monito ...
 
随机推荐
- Shell之test
			
test命令用法.功能:检查文件和比较值 1)判断表达式 if test (表达式为真) if test !表达式为假 test 表达式1 –a 表达式2 两个表达式 ...
 - [转]基于Spring + Spring MVC + Mybatis 高性能web构建
			
http://blog.csdn.net/zoutongyuan/article/details/41379851/ 一直想写这篇文章,前段时间 痴迷于JavaScript.NodeJs.Angula ...
 - spring- properties 读取的五种方式
			
转至:http://www.cnblogs.com/hafiz/p/5876243.html 方式1.通过context:property-placeholder加载配置文件jdbc.properti ...
 - 利用Anaconda安装python后,如何安装opencv-python
			
利用Anaconda安装python后,想要安装opencv-python,但发现利用opencv-python的官方教程,没法实现opencv的安装 还好看到了另外一篇博客的方法,试一下,果然凑效 ...
 - jps命令(Java Virtual Machine Process Status Tool)
			
1.介绍 用来查看基于HotSpot的JVM里面中,所有具有访问权限的Java进程的具体状态, 包括进程ID,进程启动的路径及启动参数等等,与unix上的ps类似,只不过jps是用来显示java进程, ...
 - .net 开源项目
			
.NET开发人员值得关注的七个开源项目 [IT168技术分析]微软近几年在.NET社区开源项目方面投入了相当多的时间和资源,不禁让原本对峙的开源社区阵营大吃一惊,从微软.NET社区中的反应来看,微软. ...
 - (转载)mysql中limit用法
			
(转载)http://hi.baidu.com/sppeivan/item/e45179375d6778c62f8ec221 mysql中limit用法 使用查询语句的时候,经常要返回前几条或者中 ...
 - Android问题:设置了requestWindowfeature(window.feature_no_title)后,为什么还要getwindow.setFlags?
			
//设置窗体全屏getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams. ...
 - 身为java程序员你需要知道的网站(包含书籍,面试题,架构...)
			
推荐几本书<高级java程序员值得拥有的10本书>, 首页 所有文章 资讯 Web 架构 基础技术 书籍 教程 我要投稿 更多频道 » - 导航条 - 首页 所有文章 资讯 Web ...
 - 网络流(最大流):CodeForces 499E Array and Operations
			
You have written on a piece of paper an array of n positive integers a[1], a[2], ..., a[n] and m goo ...