人亦已歌 发表于 2019-11-18 15:01:35

HTTP协议的定义、请求、响应及消息结构零基础入门讲解教程[视频+文字]


1,摘要<br><br>本文将会讲解HTTP协议的定义,请求/响应的消息体结构定义,HTTP状态码等内容。<br><br>2,HTTP协议介绍<br>HTTP协议是Hyper Text Transfer Protocol(超文本传输协议)的缩写,是用于从万维网(WWW:World Wide Web )服务器传输超文本到本地浏览器的传送协议。<br>HTTP是一个基于TCP/IP通信协议来传递数据(HTML 文件, 图片文件, 查询结果等)。<br>HTTP是一个属于应用层的面向对象的协议,由于其简捷、快速的方式,适用于分布式超媒体信息系统。它于1990年提出,经过几年的使用与发展,得到不断地完善和扩展。目前在WWW中使用的是HTTP/1.0的第六版,HTTP/1.1的规范化工作正在进行之中,而且HTTP-NG(Next Generation of HTTP)的建议已经提出。<br>HTTP协议工作于客户端-服务端架构为上。浏览器作为HTTP客户端通过URL向HTTP服务端即WEB服务器发送所有请求。Web服务器根据接收到的请求后,向客户端发送响应信息。<br><div align="center"></div><br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;2.1,HTTP协议主要特点<br><br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;1、简单快速:客户向服务器请求服务时,只需传送请求方法和路径。请求方法常用的有GET、HEAD、POST。每种方法规定了客户与服务器联系的类型不同。由于HTTP协议简单,使得HTTP服务器的程序规模小,因而通信速度很快。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;2、灵活:HTTP允许传输任意类型的数据对象。正在传输的类型由Content-Type加以标记。这意味着,只要客户端和服务器知道如何处理的数据内容,任何类型的数据都可以通过HTTP发送。客户端以及服务器指定使用适合的MIME-type内容类型。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;3.无连接:无连接的含义是限制每次连接只处理一个请求。服务器处理完客户的请求,并收到客户的应答后,即断开连接。采用这种方式可以节省传输时间。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;4.无状态:HTTP协议是无状态协议。无状态是指协议对于事务处理没有记忆能力。缺少状态意味着如果后续处理需要前面的信息,则它必须重传,这样可能导致每次连接传送的数据量增大。另一方面,在服务器不需要先前信息时它的应答就较快。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;5、支持B/S及C/S模式。<br><br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;2.2,HTTP协议交互原理<br><br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;HTTP协议工作于客户端-服务端架构上。浏览器作为HTTP客户端通过URL向HTTP服务端即WEB服务器发送所有请求。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;Web服务器有:Apache服务器,IIS服务器(Internet Information Services)等。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;Web服务器根据接收到的请求后,向客户端发送响应信息。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;HTTP默认端口号为80,但是你也可以改为8080或者其他端口。<br><div align="center"></div><br>3. HTTP 消息结构<br><br>HTTP通过一个可靠的链接来交换信息,是一个无状态的请求/响应协议。<br>一个HTTP"客户端"是一个应用程序(Web浏览器或其他任何客户端),通过连接到服务器达到向服务器发送一个或多个HTTP的请求的目的。<br>一个HTTP"服务器"同样也是一个应用程序(通常是一个Web服务,如Apache Web服务器或IIS服务器等),通过接收客户端的请求并向客户端发送HTTP响应数据。<br>HTTP使用统一资源标识符(Uniform Resource Identifiers, URI)来传输数据和建立连接。<br>一旦建立连接后,数据消息就通过类似Internet邮件所使用的格式和多用途Internet邮件扩展(MIME)来传送。<br><br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;3.1 客户端请求消息<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;客户端发送一个HTTP请求到服务器的请求消息包括以下格式:请求行(request line)、请求头部(header)、空行和请求数据四个部分组成,下图给出了请求报文的一般格式。<br><div align="center"></div><br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 3.1.1 HTTP请求方法<br><br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 根据HTTP标准,HTTP请求可以使用多种请求方法。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; HTTP1.0定义了三种请求方法: GET, POST 和 HEAD方法。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; HTTP1.1新增了五种请求方法:OPTIONS, PUT, DELETE, TRACE 和 CONNECT 方法。&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; <br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;
<style type="text/css">
.tg{border-collapse:collapse;border-spacing:0;border-color:#ccc;}
.tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:#ccc;color:#333;background-color:#fff;}
.tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:#ccc;color:#333;background-color:#f0f0f0;}
.tg .tg-cly1{text-align:left;vertical-align:middle}
.tg .tg-0lax{text-align:left;vertical-align:top}
</style>
<center>
<table class="tg" style="undefined;table-layout: fixed; width: 720px">
<colgroup>
<col style="width: 50px">
<col style="width: 50px">
<col style="width: 620px">
</colgroup>
<tr>
    <th class="tg-cly1">序号</th>
    <th class="tg-0lax">方法</th>
    <th class="tg-0lax">描述</th>
</tr>
<tr>
    <td class="tg-0lax">1</td>
    <td class="tg-0lax">GET</td>
    <td class="tg-0lax">请求指定的页面信息,并返回实体主体。</td>
</tr>
<tr>
    <td class="tg-0lax">2</td>
    <td class="tg-0lax">HEAD</td>
    <td class="tg-0lax">类似于get请求,只不过返回的响应中没有具体的内容,用于获取报头</td>
</tr>
<tr>
    <td class="tg-0lax">3</td>
    <td class="tg-0lax">POST</td>
    <td class="tg-0lax">向指定资源提交数据进行处理请求(例如提交表单或者上传文件)。数据被包含在请求体中。POST请求可能会导致新的资源的建立和/或已有资源的修改。</td>
</tr>
<tr>
    <td class="tg-0lax">4</td>
    <td class="tg-0lax">PUT</td>
    <td class="tg-0lax">从客户端向服务器传送的数据取代指定的文档的内容。</td>
</tr>
<tr>
    <td class="tg-0lax">5</td>
    <td class="tg-0lax">DELETE</td>
    <td class="tg-0lax">请求服务器删除指定的页面。</td>
</tr>
<tr>
    <td class="tg-0lax">6</td>
    <td class="tg-0lax">CONNECT</td>
    <td class="tg-0lax">HTTP/1.1协议中预留给能够将连接改为管道方式的代理服务器。</td>
</tr>
<tr>
    <td class="tg-0lax">7</td>
    <td class="tg-0lax">OPTIONS</td>
    <td class="tg-0lax">允许客户端查看服务器的性能。</td>
</tr>
<tr>
    <td class="tg-0lax">8</td>
    <td class="tg-0lax">TRACE</td>
    <td class="tg-0lax">回显服务器收到的请求,主要用于测试或诊断。</td>
</tr>
</table></center>
<br>
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;3.1.2 URL格式定义&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; <br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 在WWW上,每一信息资源都有统一的且在网上唯一的地址,该地址就叫URL(Uniform Resource Locator,统一资源定位符)。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 它是WWW的统一资源定位标志,就是指网络地址。<br><br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 语法:<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; URL由三部分组成:资源类型、存放资源的主机域名、资源文件名。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; URL的一般语法格式为:(带方括号[]的为可选项):<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; protocol :// hostname[:port] / path / [;parameters][?query]#fragment<br><br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 格式说明<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; protocol(协议)<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 指定使用的传输协议,下表列出 protocol 属性的有效方案名称。 最常用的是HTTP协议,它也是目前WWW中应用最广的协议。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; file 资源是本地计算机上的文件。格式file:///,注意后边应是三个斜杠。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; ftp 通过 FTP访问资源。格式 FTP://<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; gopher 通过 Gopher 协议访问该资源。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; http 通过 HTTP 访问该资源。 格式 HTTP://<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; https 通过安全的 HTTPS 访问该资源。 格式 HTTPS://<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; mailto 资源为电子邮件地址,通过 SMTP 访问。 格式 mailto:<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; MMS 通过 支持MMS(流媒体)协议的播放该资源。(代表软件:Windows Media Player)格式 MMS://<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; ed2k 通过 支持ed2k(专用下载链接)协议的P2P软件访问该资源。(代表软件:电驴)<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; thunder 通过 支持thunder(专用下载链接)协议的P2P软件访问该资源。(代表软件:迅雷) 格式 thunder://<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; news 通过 NNTP 访问该资源。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; hostname(主机名)<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 是指存放资源的服务器的域名系统(DNS) 主机名或 IP 地址。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 有时,在主机名前也可以包含连接到服务器所需的用户名和密码。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; port(端口号)<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 整数,可选,省略时使用方案的默认端口,各种传输协议都有默认的端口号,如http的默认端口为80。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 如果输入时省略,则使用默认端口号。有时候出于安全或其他考虑,可以在服务器上对端口进行重定义.<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 即采用非标准端口号,此时,URL中就不能省略端口号这一项。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; path(路径)<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 由零或多个“/”符号隔开的字符串,一般用来表示主机上的一个目录或文件地址。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; parameters(参数)<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 这是用于指定特殊参数的可选项。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; query(查询)<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 可选,用于给动态网页(如使用CGI、ISAPI、PHP/JSP/ASP/ASP。NET等技术制作的网页)传递参数。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 可有多个参数,用“&amp;”符号隔开,每个参数的名和值用“=”符号隔开。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; fragment(信息片断)<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 字符串,用于指定网络资源中的片断。例如一个网页中有多个名词解释,可使用fragment直接定位到某一名词解释。<br><br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 3.1.3 HTTP之URL<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 以下面这个URL为例,介绍下普通URL的各部分组成:<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; https://www.teamczyx.com:8080/news/index.php?boardID=5&amp;ID=24618&amp;page=1#name<br><div align="center"></div><br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 从上面的URL可以看出,一个完整的URL包括以下几部分:<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 1.协议部分:该URL的协议部分为“http:”,这代表网页使用的是HTTP协议。在Internet中可以使用多种协议。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 如HTTP,FTP等等本例中使用的是HTTP协议。在"HTTP"后面的“//”为分隔符<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 2.域名部分:该URL的域名部分为“<a href="http://www.aspxfans.com" target="_blank">w</a>ww.teamczyx.com”。一个URL中,也可以使用IP地址作为域名使用<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 3.端口部分:跟在域名后面的是端口,域名和端口之间使用“:”作为分隔符。端口不是一个URL必须的部分。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 如果省略端口部分,将采用默认端口<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 4.虚拟目录部分:从域名后的第一个“/”开始到最后一个“/”为止,是虚拟目录部分。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 虚拟目录也不是一个URL必须的部分。本例中的虚拟目录是“/news/”<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 5.文件名部分:从域名后的最后一个“/”开始到“?”为止,是文件名部分。 <br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 如果没有“?”,则是从域名后的最后一个“/”开始到“#”为止,是文件部分。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 如果没有“?”和“#”,那么从域名后的最后一个“/”开始到结束,都是文件名部分。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 本例中的文件名是“index.asp”。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 文件名部分也不是一个URL必须的部分,如果省略该部分,则使用默认的文件名<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 6.锚部分:从“#”开始到最后,都是锚部分。本例中的锚部分是“name”。锚部分也不是一个URL必须的部分<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 7.参数部分:从“?”开始到“#”为止之间的部分为参数部分,又称搜索部分、查询部分。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 本例中的参数部分为“boardID=5&amp;ID=24618&amp;page=1”。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 参数可以允许有多个参数,参数与参数之间用“&amp;”作为分隔符。<br><br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;3.2 服务器响应消息<br><br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;HTTP响应也由四个部分组成,分别是:状态行、消息报头、空行和响应正文。<br><div align="center"></div><br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 3.2.1 HTTP状态码<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 当浏览者访问一个网页时,浏览者的浏览器会向网页所在服务器发出请求。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 当浏览器接收并显示网页前,此网页所在的服务器会返回一个包含HTTP状态码的信息头(server header)用以响应浏览器的请求。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; HTTP状态码的英文为HTTP Status Code。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 下面是常见的HTTP状态码:<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 200 - 请求成功<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 301 - 资源(网页等)被永久转移到其它URL<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 404 - 请求的资源(网页等)不存在<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 500 - 内部服务器错误<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; HTTP状态码分类<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; HTTP状态码由三个十进制数字组成,第一个十进制数字定义了状态码的类型,后两个数字没有分类的作用。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; HTTP状态码共分为5种类型:<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &lt;caption style="border: 0px; margin: 0px; padding: 0px;"&gt;HTTP状态码分类&lt;/caption&gt;<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;

<style type="text/css">
.tg{border-collapse:collapse;border-spacing:0;border-color:#ccc;}
.tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:#ccc;color:#333;background-color:#fff;}
.tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:#ccc;color:#333;background-color:#f0f0f0;}
.tg .tg-cly1{text-align:left;vertical-align:middle}
</style>
<center>
<table class="tg" style="undefined;table-layout: fixed; width: 720px">
<colgroup>
<col style="width: 50px">
<col style="width: 670px">
</colgroup>
<tr>
    <th class="tg-cly1">分类</th>
    <th class="tg-cly1">分类描述</th>
</tr>
<tr>
    <td class="tg-cly1">1**</td>
    <td class="tg-cly1">信息,服务器收到请求,需要请求者继续执行操作</td>
</tr>
<tr>
    <td class="tg-cly1">2**</td>
    <td class="tg-cly1">成功,操作被成功接收并处理</td>
</tr>
<tr>
    <td class="tg-cly1">3**</td>
    <td class="tg-cly1">重定向,需要进一步的操作以完成请求</td>
</tr>
<tr>
    <td class="tg-cly1">4**</td>
    <td class="tg-cly1">客户端错误,请求包含语法错误或无法完成请求</td>
</tr>
<tr>
    <td class="tg-cly1">5**</td>
    <td class="tg-cly1">服务器错误,服务器在处理请求的过程中发生了错误</td>
</tr>
</table></center>
<br>
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;HTTP状态码列表:<br><br>

<style type="text/css">
.tg{border-collapse:collapse;border-spacing:0;}
.tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:black;}
.tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:black;}
.tg .tg-cly1{text-align:left;vertical-align:middle}
.tg .tg-0lax{text-align:left;vertical-align:top}
</style>
<center>
<table class="tg" style="undefined;table-layout: fixed; width: 720px">
<colgroup>
<col style="width: 50px">
<col style="width: 120px">
<col style="width: 500px">
</colgroup>
<tr>
    <th class="tg-cly1">状态码</th>
    <th class="tg-cly1">状态码英文名称</th>
    <th class="tg-cly1">中文描述</th>
</tr>
<tr>
    <td class="tg-cly1">100</td>
    <td class="tg-cly1">Continue</td>
    <td class="tg-cly1">继续。客户端应继续其请求</td>
</tr>
<tr>
    <td class="tg-cly1">101</td>
    <td class="tg-cly1">Switching Protocols</td>
    <td class="tg-cly1">切换协议。服务器根据客户端的请求切换协议。只能切换到更高级的协议,例如,切换到HTTP的新版本协议</td>
</tr>
<tr>
    <td class="tg-cly1">200</td>
    <td class="tg-cly1">OK</td>
    <td class="tg-cly1">请求成功。一般用于GET与POST请求</td>
</tr>
<tr>
    <td class="tg-cly1">201</td>
    <td class="tg-cly1">Created</td>
    <td class="tg-cly1">已创建。成功请求并创建了新的资源</td>
</tr>
<tr>
    <td class="tg-cly1">202</td>
    <td class="tg-cly1">Accepted</td>
    <td class="tg-cly1">已接受。已经接受请求,但未处理完成</td>
</tr>
<tr>
    <td class="tg-cly1">203</td>
    <td class="tg-cly1">Non-Authoritative Information</td>
    <td class="tg-cly1">非授权信息。请求成功。但返回的meta信息不在原始的服务器,而是一个副本</td>
</tr>
<tr>
    <td class="tg-cly1">204</td>
    <td class="tg-cly1">No Content</td>
    <td class="tg-cly1">无内容。服务器成功处理,但未返回内容。在未更新网页的情况下,可确保浏览器继续显示当前文档</td>
</tr>
<tr>
    <td class="tg-cly1">205</td>
    <td class="tg-cly1">Reset Content</td>
    <td class="tg-cly1">重置内容。服务器处理成功,用户终端(例如:浏览器)应重置文档视图。可通过此返回码清除浏览器的表单域</td>
</tr>
<tr>
    <td class="tg-cly1">206</td>
    <td class="tg-cly1">Partial Content</td>
    <td class="tg-cly1">部分内容。服务器成功处理了部分GET请求</td>
</tr>
<tr>
    <td class="tg-cly1">300</td>
    <td class="tg-cly1">Multiple Choices</td>
    <td class="tg-cly1">多种选择。请求的资源可包括多个位置,相应可返回一个资源特征与地址的列表用于用户终端(例如:浏览器)选择</td>
</tr>
<tr>
    <td class="tg-cly1">301</td>
    <td class="tg-cly1">Moved Permanently</td>
    <td class="tg-cly1">永久移动。请求的资源已被永久的移动到新URI,返回信息会包括新的URI,浏览器会自动定向到新URI。今后任何新的请求都应使用新的URI代替</td>
</tr>
<tr>
    <td class="tg-cly1">302</td>
    <td class="tg-cly1">Found</td>
    <td class="tg-cly1">临时移动。与301类似。但资源只是临时被移动。客户端应继续使用原有URI</td>
</tr>
<tr>
    <td class="tg-cly1">303</td>
    <td class="tg-cly1">See Other</td>
    <td class="tg-cly1">查看其它地址。与301类似。使用GET和POST请求查看</td>
</tr>
<tr>
    <td class="tg-cly1">304</td>
    <td class="tg-cly1">Not Modified</td>
    <td class="tg-cly1">未修改。所请求的资源未修改,服务器返回此状态码时,不会返回任何资源。客户端通常会缓存访问过的资源,通过提供一个头信息指出客户端希望只返回在指定日期之后修改的资源</td>
</tr>
<tr>
    <td class="tg-cly1">305</td>
    <td class="tg-cly1">Use Proxy</td>
    <td class="tg-cly1">使用代理。所请求的资源必须通过代理访问</td>
</tr>
<tr>
    <td class="tg-cly1">306</td>
    <td class="tg-cly1">Unused</td>
    <td class="tg-cly1">已经被废弃的HTTP状态码</td>
</tr>
<tr>
    <td class="tg-cly1">307</td>
    <td class="tg-cly1">Temporary Redirect</td>
    <td class="tg-cly1">临时重定向。与302类似。使用GET请求重定向</td>
</tr>
<tr>
    <td class="tg-cly1">400</td>
    <td class="tg-cly1">Bad Request</td>
    <td class="tg-cly1">客户端请求的语法错误,服务器无法理解</td>
</tr>
<tr>
    <td class="tg-cly1">401</td>
    <td class="tg-cly1">Unauthorized</td>
    <td class="tg-cly1">请求要求用户的身份认证</td>
</tr>
<tr>
    <td class="tg-cly1">402</td>
    <td class="tg-cly1">Payment Required</td>
    <td class="tg-cly1">保留,将来使用</td>
</tr>
<tr>
    <td class="tg-cly1">403</td>
    <td class="tg-cly1">Forbidden</td>
    <td class="tg-cly1">服务器理解请求客户端的请求,但是拒绝执行此请求</td>
</tr>
<tr>
    <td class="tg-cly1">404</td>
    <td class="tg-cly1">Not Found</td>
    <td class="tg-cly1">服务器无法根据客户端的请求找到资源(网页)。通过此代码,网站设计人员可设置"您所请求的资源无法找到"的个性页面</td>
</tr>
<tr>
    <td class="tg-cly1">405</td>
    <td class="tg-cly1">Method Not Allowed</td>
    <td class="tg-cly1">客户端请求中的方法被禁止</td>
</tr>
<tr>
    <td class="tg-cly1">406</td>
    <td class="tg-cly1">Not Acceptable</td>
    <td class="tg-cly1">服务器无法根据客户端请求的内容特性完成请求</td>
</tr>
<tr>
    <td class="tg-cly1">407</td>
    <td class="tg-cly1">Proxy Authentication Required</td>
    <td class="tg-cly1">请求要求代理的身份认证,与401类似,但请求者应当使用代理进行授权</td>
</tr>
<tr>
    <td class="tg-cly1">408</td>
    <td class="tg-cly1">Request Time-out</td>
    <td class="tg-cly1">服务器等待客户端发送的请求时间过长,超时</td>
</tr>
<tr>
    <td class="tg-cly1">409</td>
    <td class="tg-cly1">Conflict</td>
    <td class="tg-cly1">服务器完成客户端的PUT请求是可能返回此代码,服务器处理请求时发生了冲突</td>
</tr>
<tr>
    <td class="tg-cly1">410</td>
    <td class="tg-cly1">Gone</td>
    <td class="tg-cly1">客户端请求的资源已经不存在。410不同于404,如果资源以前有现在被永久删除了可使用410代码,网站设计人员可通过301代码指定资源的新位置</td>
</tr>
<tr>
    <td class="tg-cly1">411</td>
    <td class="tg-cly1">Length Required</td>
    <td class="tg-cly1">服务器无法处理客户端发送的不带Content-Length的请求信息</td>
</tr>
<tr>
    <td class="tg-cly1">412</td>
    <td class="tg-cly1">Precondition Failed</td>
    <td class="tg-cly1">客户端请求信息的先决条件错误</td>
</tr>
<tr>
    <td class="tg-cly1">413</td>
    <td class="tg-cly1">Request Entity Too Large</td>
    <td class="tg-cly1">由于请求的实体过大,服务器无法处理,因此拒绝请求。为防止客户端的连续请求,服务器可能会关闭连接。如果只是服务器暂时无法处理,则会包含一个Retry-After的响应信息</td>
</tr>
<tr>
    <td class="tg-cly1">414</td>
    <td class="tg-cly1">Request-URI Too Large</td>
    <td class="tg-cly1">请求的URI过长(URI通常为网址),服务器无法处理</td>
</tr>
<tr>
    <td class="tg-cly1">415</td>
    <td class="tg-cly1">Unsupported Media Type</td>
    <td class="tg-cly1">服务器无法处理请求附带的媒体格式</td>
</tr>
<tr>
    <td class="tg-cly1">416</td>
    <td class="tg-cly1">Requested range not satisfiable</td>
    <td class="tg-cly1">客户端请求的范围无效</td>
</tr>
<tr>
    <td class="tg-cly1">417</td>
    <td class="tg-cly1">Expectation Failed</td>
    <td class="tg-cly1">服务器无法满足Expect的请求头信息</td>
</tr>
<tr>
    <td class="tg-cly1">500</td>
    <td class="tg-cly1">Internal Server Error</td>
    <td class="tg-cly1">服务器内部错误,无法完成请求</td>
</tr>
<tr>
    <td class="tg-cly1">501</td>
    <td class="tg-cly1">Not Implemented</td>
    <td class="tg-cly1">服务器不支持请求的功能,无法完成请求</td>
</tr>
<tr>
    <td class="tg-0lax">502</td>
    <td class="tg-0lax">Bad Gateway</td>
    <td class="tg-0lax">作为网关或者代理工作的服务器尝试执行请求时,从远程服务器接收到了一个无效的响应</td>
</tr>
<tr>
    <td class="tg-0lax">503</td>
    <td class="tg-0lax">Service Unavailable</td>
    <td class="tg-0lax">由于超载或系统维护,服务器暂时的无法处理客户端的请求。延时的长度可包含在服务器的Retry-After头信息中</td>
</tr>
<tr>
    <td class="tg-0lax">504</td>
    <td class="tg-0lax">Gateway Time-out</td>
    <td class="tg-0lax">充当网关或代理的服务器,未及时从远端服务器获取请求</td>
</tr>
<tr>
    <td class="tg-0lax">505</td>
    <td class="tg-0lax">HTTP Version not supported</td>
    <td class="tg-0lax">服务器不支持请求的HTTP协议的版本,无法完成处理</td>
</tr>
</table></center>

<br>
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 3.2.2 HTTP 响应头信息<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 在本章节中我们将具体来介绍HTTP响应头信息。<br><br>

<style type="text/css">
.tg{border-collapse:collapse;border-spacing:0;}
.tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:black;}
.tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:black;}
.tg .tg-cly1{text-align:left;vertical-align:middle}
</style>
<center>
<table class="tg" style="undefined;table-layout: fixed; width: 720px">
<colgroup>
<col style="width: 120px">
<col style="width: 550px">
</colgroup>
<tr>
    <th class="tg-cly1">应答头</th>
    <th class="tg-cly1">说明</th>
</tr>
<tr>
    <td class="tg-cly1">Allow</td>
    <td class="tg-cly1">服务器支持哪些请求方法(如GET、POST等)。</td>
</tr>
<tr>
    <td class="tg-cly1">Content-Encoding</td>
    <td class="tg-cly1">文档的编码(Encode)方法。只有在解码之后才可以得到Content-Type头指定的内容类型。利用gzip压缩文档能够显著地减少HTML文档的下载时间。Java的GZIPOutputStream可以很方便地进行gzip压缩,但只有Unix上的Netscape和Windows上的IE 4、IE 5才支持它。因此,Servlet应该通过查看Accept-Encoding头(即request.getHeader("Accept-Encoding"))检查浏览器是否支持gzip,为支持gzip的浏览器返回经gzip压缩的HTML页面,为其他浏览器返回普通页面。</td>
</tr>
<tr>
    <td class="tg-cly1">Content-Length</td>
    <td class="tg-cly1">表示内容长度。只有当浏览器使用持久HTTP连接时才需要这个数据。如果你想要利用持久连接的优势,可以把输出文档写入 ByteArrayOutputStream,完成后查看其大小,然后把该值放入Content-Length头,最后通过byteArrayStream.writeTo(response.getOutputStream()发送内容。</td>
</tr>
<tr>
    <td class="tg-cly1">Content-Type</td>
    <td class="tg-cly1">表示后面的文档属于什么MIME类型。Servlet默认为text/plain,但通常需要显式地指定为text/html。由于经常要设置Content-Type,因此HttpServletResponse提供了一个专用的方法setContentType。</td>
</tr>
<tr>
    <td class="tg-cly1">Date</td>
    <td class="tg-cly1">当前的GMT时间。你可以用setDateHeader来设置这个头以避免转换时间格式的麻烦。</td>
</tr>
<tr>
    <td class="tg-cly1">Expires</td>
    <td class="tg-cly1">应该在什么时候认为文档已经过期,从而不再缓存它?</td>
</tr>
<tr>
    <td class="tg-cly1">Last-Modified</td>
    <td class="tg-cly1">文档的最后改动时间。客户可以通过If-Modified-Since请求头提供一个日期,该请求将被视为一个条件GET,只有改动时间迟于指定时间的文档才会返回,否则返回一个304(Not Modified)状态。Last-Modified也可用setDateHeader方法来设置。</td>
</tr>
<tr>
    <td class="tg-cly1">Location</td>
    <td class="tg-cly1">表示客户应当到哪里去提取文档。Location通常不是直接设置的,而是通过HttpServletResponse的sendRedirect方法,该方法同时设置状态代码为302。</td>
</tr>
<tr>
    <td class="tg-cly1">Refresh</td>
    <td class="tg-cly1">表示浏览器应该在多少时间之后刷新文档,以秒计。除了刷新当前文档之外,你还可以通过setHeader("Refresh", "5; URL=http://host/path")让浏览器读取指定的页面。 注意这种功能通常是通过设置HTML页面HEAD区的<META HTTP-EQUIV="Refresh" CONTENT="5;URL=http://host/path">实现,这是因为,自动刷新或重定向对于那些不能使用CGI或Servlet的HTML编写者十分重要。但是,对于Servlet来说,直接设置Refresh头更加方便。 注意Refresh的意义是"N秒之后刷新本页面或访问指定页面",而不是"每隔N秒刷新本页面或访问指定页面"。因此,连续刷新要求每次都发送一个Refresh头,而发送204状态代码则可以阻止浏览器继续刷新,不管是使用Refresh头还是<META HTTP-EQUIV="Refresh" ...> 注意Refresh头不属于HTTP 1.1正式规范的一部分,而是一个扩展,但Netscape和IE都支持它。</td>
</tr>
<tr>
    <td class="tg-cly1">Server</td>
    <td class="tg-cly1">服务器名字。Servlet一般不设置这个值,而是由Web服务器自己设置。</td>
</tr>
<tr>
    <td class="tg-cly1">Set-Cookie</td>
    <td class="tg-cly1">设置和页面关联的Cookie。Servlet不应使用response.setHeader("Set-Cookie", ...),而是应使用HttpServletResponse提供的专用方法addCookie。参见下文有关Cookie设置的讨论。</td>
</tr>
<tr>
    <td class="tg-cly1">WWW-Authenticate</td>
    <td class="tg-cly1">客户应该在Authorization头中提供什么类型的授权信息?在包含401(Unauthorized)状态行的应答中这个头是必需的。例如,response.setHeader("WWW-Authenticate", "BASIC realm=\"executives\"")。 注意Servlet一般不进行这方面的处理,而是让Web服务器的专门机制来控制受密码保护页面的访问(例如.htaccess)。</td>
</tr>
</table></center>
<br>
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 3.2.2 HTTP content-type<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; Content-Type,内容类型,一般是指网页中存在的Content-Type,用于定义网络文件的类型和网页的编码。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 决定浏览器将以什么形式、什么编码读取这个文件。<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; 这就是经常看到一些Asp网页点击的结果却是下载到的一个文件或一张图片的原因。<br><br><br>
<style type="text/css">
.tg{border-collapse:collapse;border-spacing:0;}
.tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:black;}
.tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:black;}
.tg .tg-cly1{text-align:left;vertical-align:middle}
.tg .tg-0lax{text-align:left;vertical-align:top}
</style>
<center>
<table class="tg" style="undefined;table-layout: fixed; width: 720px">
<colgroup>
<col style="width: 50px">
<col style="width: 120px">
<col style="width: 50px">
<col style="width: 500px">
</colgroup>
<tr>
    <th class="tg-cly1">文件扩展名</th>
    <th class="tg-cly1">Content-Type(Mime-Type)</th>
    <th class="tg-0lax">文件扩展名</th>
    <th class="tg-0lax">Content-Type(Mime-Type)</th>
</tr>
<tr>
    <td class="tg-cly1">.*</td>
    <td class="tg-cly1">application/octet-stream</td>
    <td class="tg-0lax">.tif</td>
    <td class="tg-0lax">image/tiff</td>
</tr>
<tr>
    <td class="tg-cly1">.001</td>
    <td class="tg-cly1">application/x-001</td>
    <td class="tg-0lax">.301</td>
    <td class="tg-0lax">application/x-301</td>
</tr>
<tr>
    <td class="tg-cly1">.323</td>
    <td class="tg-cly1">text/h323</td>
    <td class="tg-0lax">.906</td>
    <td class="tg-0lax">application/x-906</td>
</tr>
<tr>
    <td class="tg-cly1">.907</td>
    <td class="tg-cly1">drawing/907</td>
    <td class="tg-0lax">.a11</td>
    <td class="tg-0lax">application/x-a11</td>
</tr>
<tr>
    <td class="tg-cly1">.acp</td>
    <td class="tg-cly1">audio/x-mei-aac</td>
    <td class="tg-0lax">.ai</td>
    <td class="tg-0lax">application/postscript</td>
</tr>
<tr>
    <td class="tg-cly1">.aif</td>
    <td class="tg-cly1">audio/aiff</td>
    <td class="tg-0lax">.aifc</td>
    <td class="tg-0lax">audio/aiff</td>
</tr>
<tr>
    <td class="tg-cly1">.aiff</td>
    <td class="tg-cly1">audio/aiff</td>
    <td class="tg-0lax">.anv</td>
    <td class="tg-0lax">application/x-anv</td>
</tr>
<tr>
    <td class="tg-cly1">.asa</td>
    <td class="tg-cly1">text/asa</td>
    <td class="tg-0lax">.asf</td>
    <td class="tg-0lax">video/x-ms-asf</td>
</tr>
<tr>
    <td class="tg-cly1">.asp</td>
    <td class="tg-cly1">text/asp</td>
    <td class="tg-0lax">.asx</td>
    <td class="tg-0lax">video/x-ms-asf</td>
</tr>
<tr>
    <td class="tg-cly1">.au</td>
    <td class="tg-cly1">audio/basic</td>
    <td class="tg-0lax">.avi</td>
    <td class="tg-0lax">video/avi</td>
</tr>
<tr>
    <td class="tg-cly1">.awf</td>
    <td class="tg-cly1">application/vnd.adobe.workflow</td>
    <td class="tg-0lax">.biz</td>
    <td class="tg-0lax">text/xml</td>
</tr>
<tr>
    <td class="tg-cly1">.bmp</td>
    <td class="tg-cly1">application/x-bmp</td>
    <td class="tg-0lax">.bot</td>
    <td class="tg-0lax">application/x-bot</td>
</tr>
<tr>
    <td class="tg-cly1">.c4t</td>
    <td class="tg-cly1">application/x-c4t</td>
    <td class="tg-0lax">.c90</td>
    <td class="tg-0lax">application/x-c90</td>
</tr>
<tr>
    <td class="tg-cly1">.cal</td>
    <td class="tg-cly1">application/x-cals</td>
    <td class="tg-0lax">.cat</td>
    <td class="tg-0lax">application/vnd.ms-pki.seccat</td>
</tr>
<tr>
    <td class="tg-cly1">.cdf</td>
    <td class="tg-cly1">application/x-netcdf</td>
    <td class="tg-0lax">.cdr</td>
    <td class="tg-0lax">application/x-cdr</td>
</tr>
<tr>
    <td class="tg-cly1">.cel</td>
    <td class="tg-cly1">application/x-cel</td>
    <td class="tg-0lax">.cer</td>
    <td class="tg-0lax">application/x-x509-ca-cert</td>
</tr>
<tr>
    <td class="tg-cly1">.cg4</td>
    <td class="tg-cly1">application/x-g4</td>
    <td class="tg-0lax">.cgm</td>
    <td class="tg-0lax">application/x-cgm</td>
</tr>
<tr>
    <td class="tg-cly1">.cit</td>
    <td class="tg-cly1">application/x-cit</td>
    <td class="tg-0lax">.class</td>
    <td class="tg-0lax">java/*</td>
</tr>
<tr>
    <td class="tg-cly1">.cml</td>
    <td class="tg-cly1">text/xml</td>
    <td class="tg-0lax">.cmp</td>
    <td class="tg-0lax">application/x-cmp</td>
</tr>
<tr>
    <td class="tg-0lax">.cmx</td>
    <td class="tg-0lax">application/x-cmx</td>
    <td class="tg-0lax">.cot</td>
    <td class="tg-0lax">application/x-cot</td>
</tr>
<tr>
    <td class="tg-0lax">.crl</td>
    <td class="tg-0lax">application/pkix-crl</td>
    <td class="tg-0lax">.crt</td>
    <td class="tg-0lax">application/x-x509-ca-cert</td>
</tr>
<tr>
    <td class="tg-0lax">.csi</td>
    <td class="tg-0lax">application/x-csi</td>
    <td class="tg-0lax">.css</td>
    <td class="tg-0lax">text/css</td>
</tr>
<tr>
    <td class="tg-0lax">.cut</td>
    <td class="tg-0lax">application/x-cut</td>
    <td class="tg-0lax">.dbf</td>
    <td class="tg-0lax">application/x-dbf</td>
</tr>
<tr>
    <td class="tg-0lax">.dbm</td>
    <td class="tg-0lax">application/x-dbm</td>
    <td class="tg-0lax">.dbx</td>
    <td class="tg-0lax">application/x-dbx</td>
</tr>
<tr>
    <td class="tg-0lax">.dcd</td>
    <td class="tg-0lax">text/xml</td>
    <td class="tg-0lax">.dcx</td>
    <td class="tg-0lax">application/x-dcx</td>
</tr>
<tr>
    <td class="tg-0lax">.der</td>
    <td class="tg-0lax">application/x-x509-ca-cert</td>
    <td class="tg-0lax">.dgn</td>
    <td class="tg-0lax">application/x-dgn</td>
</tr>
<tr>
    <td class="tg-0lax">.dib</td>
    <td class="tg-0lax">application/x-dib</td>
    <td class="tg-0lax">.dll</td>
    <td class="tg-0lax">application/x-msdownload</td>
</tr>
<tr>
    <td class="tg-0lax">.doc</td>
    <td class="tg-0lax">application/msword</td>
    <td class="tg-0lax">.dot</td>
    <td class="tg-0lax">application/msword</td>
</tr>
<tr>
    <td class="tg-0lax">.drw</td>
    <td class="tg-0lax">application/x-drw</td>
    <td class="tg-0lax">.dtd</td>
    <td class="tg-0lax">text/xml</td>
</tr>
<tr>
    <td class="tg-0lax">.dwf</td>
    <td class="tg-0lax">Model/vnd.dwf</td>
    <td class="tg-0lax">.dwf</td>
    <td class="tg-0lax">application/x-dwf</td>
</tr>
<tr>
    <td class="tg-0lax">.dwg</td>
    <td class="tg-0lax">application/x-dwg</td>
    <td class="tg-0lax">.dxb</td>
    <td class="tg-0lax">application/x-dxb</td>
</tr>
<tr>
    <td class="tg-0lax">.dxf</td>
    <td class="tg-0lax">application/x-dxf</td>
    <td class="tg-0lax">.edn</td>
    <td class="tg-0lax">application/vnd.adobe.edn</td>
</tr>
<tr>
    <td class="tg-0lax">.emf</td>
    <td class="tg-0lax">application/x-emf</td>
    <td class="tg-0lax">.eml</td>
    <td class="tg-0lax">message/rfc822</td>
</tr>
<tr>
    <td class="tg-0lax">.ent</td>
    <td class="tg-0lax">text/xml</td>
    <td class="tg-0lax">.epi</td>
    <td class="tg-0lax">application/x-epi</td>
</tr>
<tr>
    <td class="tg-0lax">.eps</td>
    <td class="tg-0lax">application/x-ps</td>
    <td class="tg-0lax">.eps</td>
    <td class="tg-0lax">application/postscript</td>
</tr>
<tr>
    <td class="tg-0lax">.etd</td>
    <td class="tg-0lax">application/x-ebx</td>
    <td class="tg-0lax">.exe</td>
    <td class="tg-0lax">application/x-msdownload</td>
</tr>
<tr>
    <td class="tg-0lax">.fax</td>
    <td class="tg-0lax">image/fax</td>
    <td class="tg-0lax">.fdf</td>
    <td class="tg-0lax">application/vnd.fdf</td>
</tr>
<tr>
    <td class="tg-0lax">.fif</td>
    <td class="tg-0lax">application/fractals</td>
    <td class="tg-0lax">.fo</td>
    <td class="tg-0lax">text/xml</td>
</tr>
<tr>
    <td class="tg-0lax">.frm</td>
    <td class="tg-0lax">application/x-frm</td>
    <td class="tg-0lax">.g4</td>
    <td class="tg-0lax">application/x-g4</td>
</tr>
<tr>
    <td class="tg-0lax">.gbr</td>
    <td class="tg-0lax">application/x-gbr</td>
    <td class="tg-0lax">.</td>
    <td class="tg-0lax">application/x-</td>
</tr>
<tr>
    <td class="tg-0lax">.gif</td>
    <td class="tg-0lax">image/gif</td>
    <td class="tg-0lax">.gl2</td>
    <td class="tg-0lax">application/x-gl2</td>
</tr>
<tr>
    <td class="tg-0lax">.gp4</td>
    <td class="tg-0lax">application/x-gp4</td>
    <td class="tg-0lax">.hgl</td>
    <td class="tg-0lax">application/x-hgl</td>
</tr>
<tr>
    <td class="tg-0lax">.hmr</td>
    <td class="tg-0lax">application/x-hmr</td>
    <td class="tg-0lax">.hpg</td>
    <td class="tg-0lax">application/x-hpgl</td>
</tr>
<tr>
    <td class="tg-0lax">.hpl</td>
    <td class="tg-0lax">application/x-hpl</td>
    <td class="tg-0lax">.hqx</td>
    <td class="tg-0lax">application/mac-binhex40</td>
</tr>
<tr>
    <td class="tg-0lax">.hrf</td>
    <td class="tg-0lax">application/x-hrf</td>
    <td class="tg-0lax">.hta</td>
    <td class="tg-0lax">application/hta</td>
</tr>
<tr>
    <td class="tg-0lax">.htc</td>
    <td class="tg-0lax">text/x-component</td>
    <td class="tg-0lax">.htm</td>
    <td class="tg-0lax">text/html</td>
</tr>
<tr>
    <td class="tg-0lax">.html</td>
    <td class="tg-0lax">text/html</td>
    <td class="tg-0lax">.htt</td>
    <td class="tg-0lax">text/webviewhtml</td>
</tr>
<tr>
    <td class="tg-0lax">.htx</td>
    <td class="tg-0lax">text/html</td>
    <td class="tg-0lax">.icb</td>
    <td class="tg-0lax">application/x-icb</td>
</tr>
<tr>
    <td class="tg-0lax">.ico</td>
    <td class="tg-0lax">image/x-icon</td>
    <td class="tg-0lax">.ico</td>
    <td class="tg-0lax">application/x-ico</td>
</tr>
<tr>
    <td class="tg-0lax">.iff</td>
    <td class="tg-0lax">application/x-iff</td>
    <td class="tg-0lax">.ig4</td>
    <td class="tg-0lax">application/x-g4</td>
</tr>
<tr>
    <td class="tg-0lax">.igs</td>
    <td class="tg-0lax">application/x-igs</td>
    <td class="tg-0lax">.iii</td>
    <td class="tg-0lax">application/x-iphone</td>
</tr>
<tr>
    <td class="tg-0lax">.img</td>
    <td class="tg-0lax">application/x-img</td>
    <td class="tg-0lax">.ins</td>
    <td class="tg-0lax">application/x-internet-signup</td>
</tr>
<tr>
    <td class="tg-0lax">.isp</td>
    <td class="tg-0lax">application/x-internet-signup</td>
    <td class="tg-0lax">.IVF</td>
    <td class="tg-0lax">video/x-ivf</td>
</tr>
<tr>
    <td class="tg-0lax">.java</td>
    <td class="tg-0lax">java/*</td>
    <td class="tg-0lax">.jfif</td>
    <td class="tg-0lax">image/jpeg</td>
</tr>
<tr>
    <td class="tg-0lax">.jpe</td>
    <td class="tg-0lax">image/jpeg</td>
    <td class="tg-0lax">.jpe</td>
    <td class="tg-0lax">application/x-jpe</td>
</tr>
<tr>
    <td class="tg-0lax">.jpeg</td>
    <td class="tg-0lax">image/jpeg</td>
    <td class="tg-0lax">.jpg</td>
    <td class="tg-0lax">image/jpeg</td>
</tr>
<tr>
    <td class="tg-0lax">.jpg</td>
    <td class="tg-0lax">application/x-jpg</td>
    <td class="tg-0lax">.js</td>
    <td class="tg-0lax">application/x-javascript</td>
</tr>
<tr>
    <td class="tg-0lax">.jsp</td>
    <td class="tg-0lax">text/html</td>
    <td class="tg-0lax">.la1</td>
    <td class="tg-0lax">audio/x-liquid-file</td>
</tr>
<tr>
    <td class="tg-0lax">.lar</td>
    <td class="tg-0lax">application/x-laplayer-reg</td>
    <td class="tg-0lax">.latex</td>
    <td class="tg-0lax">application/x-latex</td>
</tr>
<tr>
    <td class="tg-0lax">.lavs</td>
    <td class="tg-0lax">audio/x-liquid-secure</td>
    <td class="tg-0lax">.lbm</td>
    <td class="tg-0lax">application/x-lbm</td>
</tr>
<tr>
    <td class="tg-0lax">.lmsff</td>
    <td class="tg-0lax">audio/x-la-lms</td>
    <td class="tg-0lax">.ls</td>
    <td class="tg-0lax">application/x-javascript</td>
</tr>
<tr>
    <td class="tg-0lax">.ltr</td>
    <td class="tg-0lax">application/x-ltr</td>
    <td class="tg-0lax">.m1v</td>
    <td class="tg-0lax">video/x-mpeg</td>
</tr>
<tr>
    <td class="tg-0lax">.m2v</td>
    <td class="tg-0lax">video/x-mpeg</td>
    <td class="tg-0lax">.m3u</td>
    <td class="tg-0lax">audio/mpegurl</td>
</tr>
<tr>
    <td class="tg-0lax">.m4e</td>
    <td class="tg-0lax">video/mpeg4</td>
    <td class="tg-0lax">.mac</td>
    <td class="tg-0lax">application/x-mac</td>
</tr>
<tr>
    <td class="tg-0lax">.man</td>
    <td class="tg-0lax">application/x-troff-man</td>
    <td class="tg-0lax">.math</td>
    <td class="tg-0lax">text/xml</td>
</tr>
<tr>
    <td class="tg-0lax">.mdb</td>
    <td class="tg-0lax">application/msaccess</td>
    <td class="tg-0lax">.mdb</td>
    <td class="tg-0lax">application/x-mdb</td>
</tr>
<tr>
    <td class="tg-0lax">.mfp</td>
    <td class="tg-0lax">application/x-shockwave-flash</td>
    <td class="tg-0lax">.mht</td>
    <td class="tg-0lax">message/rfc822</td>
</tr>
<tr>
    <td class="tg-0lax">.mhtml</td>
    <td class="tg-0lax">message/rfc822</td>
    <td class="tg-0lax">.mi</td>
    <td class="tg-0lax">application/x-mi</td>
</tr>
<tr>
    <td class="tg-0lax">.mid</td>
    <td class="tg-0lax">audio/mid</td>
    <td class="tg-0lax">.midi</td>
    <td class="tg-0lax">audio/mid</td>
</tr>
<tr>
    <td class="tg-0lax">.mil</td>
    <td class="tg-0lax">application/x-mil</td>
    <td class="tg-0lax">.mml</td>
    <td class="tg-0lax">text/xml</td>
</tr>
<tr>
    <td class="tg-0lax">.mnd</td>
    <td class="tg-0lax">audio/x-musicnet-download</td>
    <td class="tg-0lax">.mns</td>
    <td class="tg-0lax">audio/x-musicnet-stream</td>
</tr>
<tr>
    <td class="tg-0lax">.mocha</td>
    <td class="tg-0lax">application/x-javascript</td>
    <td class="tg-0lax">.movie</td>
    <td class="tg-0lax">video/x-sgi-movie</td>
</tr>
<tr>
    <td class="tg-0lax">.mp1</td>
    <td class="tg-0lax">audio/mp1</td>
    <td class="tg-0lax">.mp2</td>
    <td class="tg-0lax">audio/mp2</td>
</tr>
<tr>
    <td class="tg-0lax">.mp2v</td>
    <td class="tg-0lax">video/mpeg</td>
    <td class="tg-0lax">.mp3</td>
    <td class="tg-0lax">audio/mp3</td>
</tr>
<tr>
    <td class="tg-0lax">.mp4</td>
    <td class="tg-0lax">video/mpeg4</td>
    <td class="tg-0lax">.mpa</td>
    <td class="tg-0lax">video/x-mpg</td>
</tr>
<tr>
    <td class="tg-0lax">.mpd</td>
    <td class="tg-0lax">application/vnd.ms-project</td>
    <td class="tg-0lax">.mpe</td>
    <td class="tg-0lax">video/x-mpeg</td>
</tr>
<tr>
    <td class="tg-0lax">.mpeg</td>
    <td class="tg-0lax">video/mpg</td>
    <td class="tg-0lax">.mpg</td>
    <td class="tg-0lax">video/mpg</td>
</tr>
<tr>
    <td class="tg-0lax">.mpga</td>
    <td class="tg-0lax">audio/rn-mpeg</td>
    <td class="tg-0lax">.mpp</td>
    <td class="tg-0lax">application/vnd.ms-project</td>
</tr>
<tr>
    <td class="tg-0lax">.mps</td>
    <td class="tg-0lax">video/x-mpeg</td>
    <td class="tg-0lax">.mpt</td>
    <td class="tg-0lax">application/vnd.ms-project</td>
</tr>
<tr>
    <td class="tg-0lax">.mpv</td>
    <td class="tg-0lax">video/mpg</td>
    <td class="tg-0lax">.mpv2</td>
    <td class="tg-0lax">video/mpeg</td>
</tr>
<tr>
    <td class="tg-0lax">.mpw</td>
    <td class="tg-0lax">application/vnd.ms-project</td>
    <td class="tg-0lax">.mpx</td>
    <td class="tg-0lax">application/vnd.ms-project</td>
</tr>
<tr>
    <td class="tg-0lax">.mtx</td>
    <td class="tg-0lax">text/xml</td>
    <td class="tg-0lax">.mxp</td>
    <td class="tg-0lax">application/x-mmxp</td>
</tr>
<tr>
    <td class="tg-0lax">.net</td>
    <td class="tg-0lax">image/pnetvue</td>
    <td class="tg-0lax">.nrf</td>
    <td class="tg-0lax">application/x-nrf</td>
</tr>
<tr>
    <td class="tg-0lax">.nws</td>
    <td class="tg-0lax">message/rfc822</td>
    <td class="tg-0lax">.odc</td>
    <td class="tg-0lax">text/x-ms-odc</td>
</tr>
<tr>
    <td class="tg-0lax">.out</td>
    <td class="tg-0lax">application/x-out</td>
    <td class="tg-0lax">.p10</td>
    <td class="tg-0lax">application/pkcs10</td>
</tr>
<tr>
    <td class="tg-0lax">.p12</td>
    <td class="tg-0lax">application/x-pkcs12</td>
    <td class="tg-0lax">.p7b</td>
    <td class="tg-0lax">application/x-pkcs7-certificates</td>
</tr>
<tr>
    <td class="tg-0lax">.p7c</td>
    <td class="tg-0lax">application/pkcs7-mime</td>
    <td class="tg-0lax">.p7m</td>
    <td class="tg-0lax">application/pkcs7-mime</td>
</tr>
<tr>
    <td class="tg-0lax">.p7r</td>
    <td class="tg-0lax">application/x-pkcs7-certreqresp</td>
    <td class="tg-0lax">.p7s</td>
    <td class="tg-0lax">application/pkcs7-signature</td>
</tr>
<tr>
    <td class="tg-0lax">.pc5</td>
    <td class="tg-0lax">application/x-pc5</td>
    <td class="tg-0lax">.pci</td>
    <td class="tg-0lax">application/x-pci</td>
</tr>
<tr>
    <td class="tg-0lax">.pcl</td>
    <td class="tg-0lax">application/x-pcl</td>
    <td class="tg-0lax">.pcx</td>
    <td class="tg-0lax">application/x-pcx</td>
</tr>
<tr>
    <td class="tg-0lax">.pdf</td>
    <td class="tg-0lax">application/pdf</td>
    <td class="tg-0lax">.pdf</td>
    <td class="tg-0lax">application/pdf</td>
</tr>
<tr>
    <td class="tg-0lax">.pdx</td>
    <td class="tg-0lax">application/vnd.adobe.pdx</td>
    <td class="tg-0lax">.pfx</td>
    <td class="tg-0lax">application/x-pkcs12</td>
</tr>
<tr>
    <td class="tg-0lax">.pgl</td>
    <td class="tg-0lax">application/x-pgl</td>
    <td class="tg-0lax">.pic</td>
    <td class="tg-0lax">application/x-pic</td>
</tr>
<tr>
    <td class="tg-0lax">.pko</td>
    <td class="tg-0lax">application/vnd.ms-pki.pko</td>
    <td class="tg-0lax">.pl</td>
    <td class="tg-0lax">application/x-perl</td>
</tr>
<tr>
    <td class="tg-0lax">.plg</td>
    <td class="tg-0lax">text/html</td>
    <td class="tg-0lax">.pls</td>
    <td class="tg-0lax">audio/scpls</td>
</tr>
<tr>
    <td class="tg-0lax">.plt</td>
    <td class="tg-0lax">application/x-plt</td>
    <td class="tg-0lax">.png</td>
    <td class="tg-0lax">image/png</td>
</tr>
<tr>
    <td class="tg-0lax">.png</td>
    <td class="tg-0lax">application/x-png</td>
    <td class="tg-0lax">.pot</td>
    <td class="tg-0lax">application/vnd.ms-powerpoint</td>
</tr>
<tr>
    <td class="tg-0lax">.ppa</td>
    <td class="tg-0lax">application/vnd.ms-powerpoint</td>
    <td class="tg-0lax">.ppm</td>
    <td class="tg-0lax">application/x-ppm</td>
</tr>
<tr>
    <td class="tg-0lax">.pps</td>
    <td class="tg-0lax">application/vnd.ms-powerpoint</td>
    <td class="tg-0lax">.ppt</td>
    <td class="tg-0lax">application/vnd.ms-powerpoint</td>
</tr>
<tr>
    <td class="tg-0lax">.ppt</td>
    <td class="tg-0lax">application/x-ppt</td>
    <td class="tg-0lax">.pr</td>
    <td class="tg-0lax">application/x-pr</td>
</tr>
<tr>
    <td class="tg-0lax">.prf</td>
    <td class="tg-0lax">application/pics-rules</td>
    <td class="tg-0lax">.prn</td>
    <td class="tg-0lax">application/x-prn</td>
</tr>
<tr>
    <td class="tg-0lax">.prt</td>
    <td class="tg-0lax">application/x-prt</td>
    <td class="tg-0lax">.ps</td>
    <td class="tg-0lax">application/x-ps</td>
</tr>
<tr>
    <td class="tg-0lax">.ps</td>
    <td class="tg-0lax">application/postscript</td>
    <td class="tg-0lax">.ptn</td>
    <td class="tg-0lax">application/x-ptn</td>
</tr>
<tr>
    <td class="tg-0lax">.pwz</td>
    <td class="tg-0lax">application/vnd.ms-powerpoint</td>
    <td class="tg-0lax">.r3t</td>
    <td class="tg-0lax">text/vnd.rn-realtext3d</td>
</tr>
<tr>
    <td class="tg-0lax">.ra</td>
    <td class="tg-0lax">audio/vnd.rn-realaudio</td>
    <td class="tg-0lax">.ram</td>
    <td class="tg-0lax">audio/x-pn-realaudio</td>
</tr>
<tr>
    <td class="tg-0lax">.ras</td>
    <td class="tg-0lax">application/x-ras</td>
    <td class="tg-0lax">.rat</td>
    <td class="tg-0lax">application/rat-file</td>
</tr>
<tr>
    <td class="tg-0lax">.rdf</td>
    <td class="tg-0lax">text/xml</td>
    <td class="tg-0lax">.rec</td>
    <td class="tg-0lax">application/vnd.rn-recording</td>
</tr>
<tr>
    <td class="tg-0lax">.red</td>
    <td class="tg-0lax">application/x-red</td>
    <td class="tg-0lax">.rgb</td>
    <td class="tg-0lax">application/x-rgb</td>
</tr>
<tr>
    <td class="tg-0lax">.rjs</td>
    <td class="tg-0lax">application/vnd.rn-realsystem-rjs</td>
    <td class="tg-0lax">.rjt</td>
    <td class="tg-0lax">application/vnd.rn-realsystem-rjt</td>
</tr>
<tr>
    <td class="tg-0lax">.rlc</td>
    <td class="tg-0lax">application/x-rlc</td>
    <td class="tg-0lax">.rle</td>
    <td class="tg-0lax">application/x-rle</td>
</tr>
<tr>
    <td class="tg-0lax">.rm</td>
    <td class="tg-0lax">application/vnd.rn-realmedia</td>
    <td class="tg-0lax">.rmf</td>
    <td class="tg-0lax">application/vnd.adobe.rmf</td>
</tr>
<tr>
    <td class="tg-0lax">.rmi</td>
    <td class="tg-0lax">audio/mid</td>
    <td class="tg-0lax">.rmj</td>
    <td class="tg-0lax">application/vnd.rn-realsystem-rmj</td>
</tr>
<tr>
    <td class="tg-0lax">.rmm</td>
    <td class="tg-0lax">audio/x-pn-realaudio</td>
    <td class="tg-0lax">.rmp</td>
    <td class="tg-0lax">application/vnd.rn-rn_music_package</td>
</tr>
<tr>
    <td class="tg-0lax">.rms</td>
    <td class="tg-0lax">application/vnd.rn-realmedia-secure</td>
    <td class="tg-0lax">.rmvb</td>
    <td class="tg-0lax">application/vnd.rn-realmedia-vbr</td>
</tr>
<tr>
    <td class="tg-0lax">.rmx</td>
    <td class="tg-0lax">application/vnd.rn-realsystem-rmx</td>
    <td class="tg-0lax">.rnx</td>
    <td class="tg-0lax">application/vnd.rn-realplayer</td>
</tr>
<tr>
    <td class="tg-0lax">.rp</td>
    <td class="tg-0lax">image/vnd.rn-realpix</td>
    <td class="tg-0lax">.rpm</td>
    <td class="tg-0lax">audio/x-pn-realaudio-plugin</td>
</tr>
<tr>
    <td class="tg-0lax">.rsml</td>
    <td class="tg-0lax">application/vnd.rn-rsml</td>
    <td class="tg-0lax">.rt</td>
    <td class="tg-0lax">text/vnd.rn-realtext</td>
</tr>
<tr>
    <td class="tg-0lax">.rtf</td>
    <td class="tg-0lax">application/msword</td>
    <td class="tg-0lax">.rtf</td>
    <td class="tg-0lax">application/x-rtf</td>
</tr>
<tr>
    <td class="tg-0lax">.rv</td>
    <td class="tg-0lax">video/vnd.rn-realvideo</td>
    <td class="tg-0lax">.sam</td>
    <td class="tg-0lax">application/x-sam</td>
</tr>
<tr>
    <td class="tg-0lax">.sat</td>
    <td class="tg-0lax">application/x-sat</td>
    <td class="tg-0lax">.sdp</td>
    <td class="tg-0lax">application/sdp</td>
</tr>
<tr>
    <td class="tg-0lax">.sdw</td>
    <td class="tg-0lax">application/x-sdw</td>
    <td class="tg-0lax">.sit</td>
    <td class="tg-0lax">application/x-stuffit</td>
</tr>
<tr>
    <td class="tg-0lax">.slb</td>
    <td class="tg-0lax">application/x-slb</td>
    <td class="tg-0lax">.sld</td>
    <td class="tg-0lax">application/x-sld</td>
</tr>
<tr>
    <td class="tg-0lax">.slk</td>
    <td class="tg-0lax">drawing/x-slk</td>
    <td class="tg-0lax">.smi</td>
    <td class="tg-0lax">application/smil</td>
</tr>
<tr>
    <td class="tg-0lax">.smil</td>
    <td class="tg-0lax">application/smil</td>
    <td class="tg-0lax">.smk</td>
    <td class="tg-0lax">application/x-smk</td>
</tr>
<tr>
    <td class="tg-0lax">.snd</td>
    <td class="tg-0lax">audio/basic</td>
    <td class="tg-0lax">.sol</td>
    <td class="tg-0lax">text/plain</td>
</tr>
<tr>
    <td class="tg-0lax">.sor</td>
    <td class="tg-0lax">text/plain</td>
    <td class="tg-0lax">.spc</td>
    <td class="tg-0lax">application/x-pkcs7-certificates</td>
</tr>
<tr>
    <td class="tg-0lax">.spl</td>
    <td class="tg-0lax">application/futuresplash</td>
    <td class="tg-0lax">.spp</td>
    <td class="tg-0lax">text/xml</td>
</tr>
<tr>
    <td class="tg-0lax">.ssm</td>
    <td class="tg-0lax">application/streamingmedia</td>
    <td class="tg-0lax">.sst</td>
    <td class="tg-0lax">application/vnd.ms-pki.certstore</td>
</tr>
<tr>
    <td class="tg-0lax">.stl</td>
    <td class="tg-0lax">application/vnd.ms-pki.stl</td>
    <td class="tg-0lax">.stm</td>
    <td class="tg-0lax">text/html</td>
</tr>
<tr>
    <td class="tg-0lax">.sty</td>
    <td class="tg-0lax">application/x-sty</td>
    <td class="tg-0lax">.svg</td>
    <td class="tg-0lax">text/xml</td>
</tr>
<tr>
    <td class="tg-0lax">.swf</td>
    <td class="tg-0lax">application/x-shockwave-flash</td>
    <td class="tg-0lax">.tdf</td>
    <td class="tg-0lax">application/x-tdf</td>
</tr>
<tr>
    <td class="tg-0lax">.tg4</td>
    <td class="tg-0lax">application/x-tg4</td>
    <td class="tg-0lax">.tga</td>
    <td class="tg-0lax">application/x-tga</td>
</tr>
<tr>
    <td class="tg-0lax">.tif</td>
    <td class="tg-0lax">image/tiff</td>
    <td class="tg-0lax">.tif</td>
    <td class="tg-0lax">application/x-tif</td>
</tr>
<tr>
    <td class="tg-0lax">.tiff</td>
    <td class="tg-0lax">image/tiff</td>
    <td class="tg-0lax">.tld</td>
    <td class="tg-0lax">text/xml</td>
</tr>
<tr>
    <td class="tg-0lax">.top</td>
    <td class="tg-0lax">drawing/x-top</td>
    <td class="tg-0lax">.torrent</td>
    <td class="tg-0lax">application/x-bittorrent</td>
</tr>
<tr>
    <td class="tg-0lax">.tsd</td>
    <td class="tg-0lax">text/xml</td>
    <td class="tg-0lax">.txt</td>
    <td class="tg-0lax">text/plain</td>
</tr>
<tr>
    <td class="tg-0lax">.uin</td>
    <td class="tg-0lax">application/x-icq</td>
    <td class="tg-0lax">.uls</td>
    <td class="tg-0lax">text/iuls</td>
</tr>
<tr>
    <td class="tg-0lax">.vcf</td>
    <td class="tg-0lax">text/x-vcard</td>
    <td class="tg-0lax">.vda</td>
    <td class="tg-0lax">application/x-vda</td>
</tr>
<tr>
    <td class="tg-0lax">.vdx</td>
    <td class="tg-0lax">application/vnd.visio</td>
    <td class="tg-0lax">.vml</td>
    <td class="tg-0lax">text/xml</td>
</tr>
<tr>
    <td class="tg-0lax">.vpg</td>
    <td class="tg-0lax">application/x-vpeg005</td>
    <td class="tg-0lax">.vsd</td>
    <td class="tg-0lax">application/vnd.visio</td>
</tr>
<tr>
    <td class="tg-0lax">.vsd</td>
    <td class="tg-0lax">application/x-vsd</td>
    <td class="tg-0lax">.vss</td>
    <td class="tg-0lax">application/vnd.visio</td>
</tr>
<tr>
    <td class="tg-0lax">.vst</td>
    <td class="tg-0lax">application/vnd.visio</td>
    <td class="tg-0lax">.vst</td>
    <td class="tg-0lax">application/x-vst</td>
</tr>
<tr>
    <td class="tg-0lax">.vsw</td>
    <td class="tg-0lax">application/vnd.visio</td>
    <td class="tg-0lax">.vsx</td>
    <td class="tg-0lax">application/vnd.visio</td>
</tr>
<tr>
    <td class="tg-0lax">.vtx</td>
    <td class="tg-0lax">application/vnd.visio</td>
    <td class="tg-0lax">.vxml</td>
    <td class="tg-0lax">text/xml</td>
</tr>
<tr>
    <td class="tg-0lax">.wav</td>
    <td class="tg-0lax">audio/wav</td>
    <td class="tg-0lax">.wax</td>
    <td class="tg-0lax">audio/x-ms-wax</td>
</tr>
<tr>
    <td class="tg-0lax">.wb1</td>
    <td class="tg-0lax">application/x-wb1</td>
    <td class="tg-0lax">.wb2</td>
    <td class="tg-0lax">application/x-wb2</td>
</tr>
<tr>
    <td class="tg-0lax">.wb3</td>
    <td class="tg-0lax">application/x-wb3</td>
    <td class="tg-0lax">.wbmp</td>
    <td class="tg-0lax">image/vnd.wap.wbmp</td>
</tr>
<tr>
    <td class="tg-0lax">.wiz</td>
    <td class="tg-0lax">application/msword</td>
    <td class="tg-0lax">.wk3</td>
    <td class="tg-0lax">application/x-wk3</td>
</tr>
<tr>
    <td class="tg-0lax">.wk4</td>
    <td class="tg-0lax">application/x-wk4</td>
    <td class="tg-0lax">.wkq</td>
    <td class="tg-0lax">application/x-wkq</td>
</tr>
<tr>
    <td class="tg-0lax">.wks</td>
    <td class="tg-0lax">application/x-wks</td>
    <td class="tg-0lax">.wm</td>
    <td class="tg-0lax">video/x-ms-wm</td>
</tr>
<tr>
    <td class="tg-0lax">.wma</td>
    <td class="tg-0lax">audio/x-ms-wma</td>
    <td class="tg-0lax">.wmd</td>
    <td class="tg-0lax">application/x-ms-wmd</td>
</tr>
<tr>
    <td class="tg-0lax">.wmf</td>
    <td class="tg-0lax">application/x-wmf</td>
    <td class="tg-0lax">.wml</td>
    <td class="tg-0lax">text/vnd.wap.wml</td>
</tr>
<tr>
    <td class="tg-0lax">.wmv</td>
    <td class="tg-0lax">video/x-ms-wmv</td>
    <td class="tg-0lax">.wmx</td>
    <td class="tg-0lax">video/x-ms-wmx</td>
</tr>
<tr>
    <td class="tg-0lax">.wmz</td>
    <td class="tg-0lax">application/x-ms-wmz</td>
    <td class="tg-0lax">.wp6</td>
    <td class="tg-0lax">application/x-wp6</td>
</tr>
<tr>
    <td class="tg-0lax">.wpd</td>
    <td class="tg-0lax">application/x-wpd</td>
    <td class="tg-0lax">.wpg</td>
    <td class="tg-0lax">application/x-wpg</td>
</tr>
<tr>
    <td class="tg-0lax">.wpl</td>
    <td class="tg-0lax">application/vnd.ms-wpl</td>
    <td class="tg-0lax">.wq1</td>
    <td class="tg-0lax">application/x-wq1</td>
</tr>
<tr>
    <td class="tg-0lax">.wr1</td>
    <td class="tg-0lax">application/x-wr1</td>
    <td class="tg-0lax">.wri</td>
    <td class="tg-0lax">application/x-wri</td>
</tr>
<tr>
    <td class="tg-0lax">.wrk</td>
    <td class="tg-0lax">application/x-wrk</td>
    <td class="tg-0lax">.ws</td>
    <td class="tg-0lax">application/x-ws</td>
</tr>
<tr>
    <td class="tg-0lax">.ws2</td>
    <td class="tg-0lax">application/x-ws</td>
    <td class="tg-0lax">.wsc</td>
    <td class="tg-0lax">text/scriptlet</td>
</tr>
<tr>
    <td class="tg-0lax">.wsdl</td>
    <td class="tg-0lax">text/xml</td>
    <td class="tg-0lax">.wvx</td>
    <td class="tg-0lax">video/x-ms-wvx</td>
</tr>
<tr>
    <td class="tg-0lax">.xdp</td>
    <td class="tg-0lax">application/vnd.adobe.xdp</td>
    <td class="tg-0lax">.xdr</td>
    <td class="tg-0lax">text/xml</td>
</tr>
<tr>
    <td class="tg-0lax">.xfd</td>
    <td class="tg-0lax">application/vnd.adobe.xfd</td>
    <td class="tg-0lax">.xfdf</td>
    <td class="tg-0lax">application/vnd.adobe.xfdf</td>
</tr>
<tr>
    <td class="tg-0lax">.xhtml</td>
    <td class="tg-0lax">text/html</td>
    <td class="tg-0lax">.xls</td>
    <td class="tg-0lax">application/vnd.ms-excel</td>
</tr>
<tr>
    <td class="tg-0lax">.xls</td>
    <td class="tg-0lax">application/x-xls</td>
    <td class="tg-0lax">.xlw</td>
    <td class="tg-0lax">application/x-xlw</td>
</tr>
<tr>
    <td class="tg-0lax">.xml</td>
    <td class="tg-0lax">text/xml</td>
    <td class="tg-0lax">.xpl</td>
    <td class="tg-0lax">audio/scpls</td>
</tr>
<tr>
    <td class="tg-0lax">.xq</td>
    <td class="tg-0lax">text/xml</td>
    <td class="tg-0lax">.xql</td>
    <td class="tg-0lax">text/xml</td>
</tr>
<tr>
    <td class="tg-0lax">.xquery</td>
    <td class="tg-0lax">text/xml</td>
    <td class="tg-0lax">.xsd</td>
    <td class="tg-0lax">text/xml</td>
</tr>
<tr>
    <td class="tg-0lax">.xsl</td>
    <td class="tg-0lax">text/xml</td>
    <td class="tg-0lax">.xslt</td>
    <td class="tg-0lax">text/xml</td>
</tr>
<tr>
    <td class="tg-0lax">.xwd</td>
    <td class="tg-0lax">application/x-xwd</td>
    <td class="tg-0lax">.x_b</td>
    <td class="tg-0lax">application/x-x_b</td>
</tr>
<tr>
    <td class="tg-0lax">.sis</td>
    <td class="tg-0lax">application/vnd.symbian.install</td>
    <td class="tg-0lax">.sisx</td>
    <td class="tg-0lax">application/vnd.symbian.install</td>
</tr>
<tr>
    <td class="tg-0lax">.x_t</td>
    <td class="tg-0lax">application/x-x_t</td>
    <td class="tg-0lax">.ipa</td>
    <td class="tg-0lax">application/vnd.iphone</td>
</tr>
<tr>
    <td class="tg-0lax">.apk</td>
    <td class="tg-0lax">application/vnd.android.package-archive</td>
    <td class="tg-0lax">.xap</td>
    <td class="tg-0lax">application/x-silverlight-app</td>
</tr>
</table><center>

以上就关于HTTP协议的一个简要介绍,本文虽然写的比较详细,但在实际使用慈众易博V9的过程中经常用到的知识点并不多,大家可以通过阅读本文来理解HTTP协议的结构及传输模式,这是很有必要的。

叛逆 发表于 2019-11-19 00:12:56


真是 收益 匪浅

任逍遥 发表于 2019-11-19 00:13:09


不错不错,楼主您辛苦了。。。

人和就有好 发表于 2019-11-19 00:13:28


学习了,谢谢分享、、、

土匪假期 发表于 2019-11-19 00:13:50


学习了,谢谢分享、、、

Cser2 发表于 2020-10-16 01:53:26

MARK 很详细
页: [1]
查看完整版本: HTTP协议的定义、请求、响应及消息结构零基础入门讲解教程[视频+文字]