<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>OurApache &#187; Content-Type</title>
	<atom:link href="http://ourapache.com/archives/tag/content-type/feed" rel="self" type="application/rss+xml" />
	<link>http://ourapache.com</link>
	<description>我们致力于一个Apache知识的分享网站</description>
	<lastBuildDate>Tue, 13 Apr 2010 05:18:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>header Content-Type类型</title>
		<link>http://ourapache.com/archives/193</link>
		<comments>http://ourapache.com/archives/193#comments</comments>
		<pubDate>Fri, 27 Feb 2009 03:05:24 +0000</pubDate>
		<dc:creator>OurApache</dc:creator>
				<category><![CDATA[HTTP相关知识]]></category>
		<category><![CDATA[Content-Type]]></category>
		<category><![CDATA[header]]></category>

		<guid isPermaLink="false">http://www.ourapache.com/?p=193</guid>
		<description><![CDATA[具体使用如：header('Content-Type: audio/mpeg');

最近在做MP3防盗链时要查的header的相关信息，网上关于MP3的Content-Type的就有五花8门，下面应该是比较全而且正确的。]]></description>
			<content:encoded><![CDATA[<p>具体使用如：<a href="http://ourapache.com/archives/tag/header" class="st_tag internal_tag" rel="tag" title="标签 header 下的日志">header</a>(&#8216;<a href="http://ourapache.com/archives/tag/content-type" class="st_tag internal_tag" rel="tag" title="标签 Content-Type 下的日志">Content-Type</a>: audio/mpeg&#8217;);</p>
<p>最近在做MP3防盗链时要查的header的相关信息，网上关于MP3的Content-Type的就有五花8门，下面应该是比较全而且正确的。</p>
<p>Content-type 文件类型列表:</p>
<blockquote><p>&lt;?php</p>
<p>$mimetypes = array(</p>
<p>&#8216;ez&#8217; =&gt; &#8216;application/andrew-inset&#8217;,</p>
<p>&#8216;hqx&#8217; =&gt; &#8216;application/mac-binhex40&#8242;,</p>
<p>&#8216;cpt&#8217; =&gt; &#8216;application/mac-compactpro&#8217;,</p>
<p>&#8216;doc&#8217; =&gt; &#8216;application/msword&#8217;,</p>
<p>&#8216;bin&#8217; =&gt; &#8216;application/octet-stream&#8217;,</p>
<p>&#8216;dms&#8217; =&gt; &#8216;application/octet-stream&#8217;,</p>
<p>&#8216;lha&#8217; =&gt; &#8216;application/octet-stream&#8217;,</p>
<p>&#8216;lzh&#8217; =&gt; &#8216;application/octet-stream&#8217;,</p>
<p>&#8216;exe&#8217; =&gt; &#8216;application/octet-stream&#8217;,</p>
<p>&#8216;class&#8217; =&gt; &#8216;application/octet-stream&#8217;,</p>
<p>&#8216;so&#8217; =&gt; &#8216;application/octet-stream&#8217;,</p>
<p>&#8216;dll&#8217; =&gt; &#8216;application/octet-stream&#8217;,</p>
<p>&#8216;oda&#8217; =&gt; &#8216;application/oda&#8217;,</p>
<p>&#8216;pdf&#8217; =&gt; &#8216;application/pdf&#8217;,</p>
<p>&#8216;ai&#8217; =&gt; &#8216;application/postscript&#8217;,</p>
<p>&#8216;eps&#8217; =&gt; &#8216;application/postscript&#8217;,</p>
<p>&#8216;ps&#8217; =&gt; &#8216;application/postscript&#8217;,</p>
<p>&#8216;smi&#8217; =&gt; &#8216;application/smil&#8217;,</p>
<p>&#8216;smil&#8217; =&gt; &#8216;application/smil&#8217;,</p>
<p>&#8216;mif&#8217; =&gt; &#8216;application/vnd.mif&#8217;,</p>
<p>&#8216;xls&#8217; =&gt; &#8216;application/vnd.ms-excel&#8217;,</p>
<p>&#8216;ppt&#8217; =&gt; &#8216;application/vnd.ms-powerpoint&#8217;,</p>
<p>&#8216;wbxml&#8217; =&gt; &#8216;application/vnd.wap.wbxml&#8217;,</p>
<p>&#8216;wmlc&#8217; =&gt; &#8216;application/vnd.wap.wmlc&#8217;,</p>
<p>&#8216;wmlsc&#8217; =&gt; &#8216;application/vnd.wap.wmlscriptc&#8217;,</p>
<p>&#8216;bcpio&#8217; =&gt; &#8216;application/x-bcpio&#8217;,</p>
<p>&#8216;vcd&#8217; =&gt; &#8216;application/x-cdlink&#8217;,</p>
<p>&#8216;pgn&#8217; =&gt; &#8216;application/x-chess-pgn&#8217;,</p>
<p>&#8216;cpio&#8217; =&gt; &#8216;application/x-cpio&#8217;,</p>
<p>&#8216;csh&#8217; =&gt; &#8216;application/x-csh&#8217;,</p>
<p>&#8216;dcr&#8217; =&gt; &#8216;application/x-director&#8217;,</p>
<p>&#8216;dir&#8217; =&gt; &#8216;application/x-director&#8217;,</p>
<p>&#8216;dxr&#8217; =&gt; &#8216;application/x-director&#8217;,</p>
<p>&#8216;dvi&#8217; =&gt; &#8216;application/x-dvi&#8217;,</p>
<p>&#8216;spl&#8217; =&gt; &#8216;application/x-futuresplash&#8217;,</p>
<p>&#8216;gtar&#8217; =&gt; &#8216;application/x-gtar&#8217;,</p>
<p>&#8216;hdf&#8217; =&gt; &#8216;application/x-hdf&#8217;,</p>
<p>&#8216;js&#8217; =&gt; &#8216;application/x-javascript&#8217;,</p>
<p>&#8216;skp&#8217; =&gt; &#8216;application/x-koan&#8217;,</p>
<p>&#8216;skd&#8217; =&gt; &#8216;application/x-koan&#8217;,</p>
<p>&#8216;skt&#8217; =&gt; &#8216;application/x-koan&#8217;,</p>
<p>&#8216;skm&#8217; =&gt; &#8216;application/x-koan&#8217;,</p>
<p>&#8216;latex&#8217; =&gt; &#8216;application/x-latex&#8217;,</p>
<p>&#8216;nc&#8217; =&gt; &#8216;application/x-netcdf&#8217;,</p>
<p>&#8216;cdf&#8217; =&gt; &#8216;application/x-netcdf&#8217;,</p>
<p>&#8216;sh&#8217; =&gt; &#8216;application/x-sh&#8217;,</p>
<p>&#8216;shar&#8217; =&gt; &#8216;application/x-shar&#8217;,</p>
<p>&#8216;swf&#8217; =&gt; &#8216;application/x-shockwave-flash&#8217;,</p>
<p>&#8216;sit&#8217; =&gt; &#8216;application/x-stuffit&#8217;,</p>
<p>&#8216;sv4cpio&#8217; =&gt; &#8216;application/x-sv4cpio&#8217;,</p>
<p>&#8216;sv4crc&#8217; =&gt; &#8216;application/x-sv4crc&#8217;,</p>
<p>&#8216;tar&#8217; =&gt; &#8216;application/x-tar&#8217;,</p>
<p>&#8216;tcl&#8217; =&gt; &#8216;application/x-tcl&#8217;,</p>
<p>&#8216;tex&#8217; =&gt; &#8216;application/x-tex&#8217;,</p>
<p>&#8216;texinfo&#8217; =&gt; &#8216;application/x-texinfo&#8217;,</p>
<p>&#8216;texi&#8217; =&gt; &#8216;application/x-texinfo&#8217;,</p>
<p>&#8216;t&#8217; =&gt; &#8216;application/x-troff&#8217;,</p>
<p>&#8216;tr&#8217; =&gt; &#8216;application/x-troff&#8217;,</p>
<p>&#8216;roff&#8217; =&gt; &#8216;application/x-troff&#8217;,</p>
<p>&#8216;man&#8217; =&gt; &#8216;application/x-troff-man&#8217;,</p>
<p>&#8216;me&#8217; =&gt; &#8216;application/x-troff-me&#8217;,</p>
<p>&#8216;ms&#8217; =&gt; &#8216;application/x-troff-ms&#8217;,</p>
<p>&#8216;ustar&#8217; =&gt; &#8216;application/x-ustar&#8217;,</p>
<p>&#8216;src&#8217; =&gt; &#8216;application/x-wais-source&#8217;,</p>
<p>&#8216;xhtml&#8217; =&gt; &#8216;application/xhtml+xml&#8217;,</p>
<p>&#8216;xht&#8217; =&gt; &#8216;application/xhtml+xml&#8217;,</p>
<p>&#8216;zip&#8217; =&gt; &#8216;application/zip&#8217;,</p>
<p>&#8216;au&#8217; =&gt; &#8216;audio/basic&#8217;,</p>
<p>&#8216;snd&#8217; =&gt; &#8216;audio/basic&#8217;,</p>
<p>&#8216;mid&#8217; =&gt; &#8216;audio/midi&#8217;,</p>
<p>&#8216;midi&#8217; =&gt; &#8216;audio/midi&#8217;,</p>
<p>&#8216;kar&#8217; =&gt; &#8216;audio/midi&#8217;,</p>
<p>&#8216;mpga&#8217; =&gt; &#8216;audio/mpeg&#8217;,</p>
<p>&#8216;mp2&#8242; =&gt; &#8216;audio/mpeg&#8217;,</p>
<p>&#8216;mp3&#8242; =&gt; &#8216;audio/mpeg&#8217;,</p>
<p>&#8216;aif&#8217; =&gt; &#8216;audio/x-aiff&#8217;,</p>
<p>&#8216;aiff&#8217; =&gt; &#8216;audio/x-aiff&#8217;,</p>
<p>&#8216;aifc&#8217; =&gt; &#8216;audio/x-aiff&#8217;,</p>
<p>&#8216;m3u&#8217; =&gt; &#8216;audio/x-mpegurl&#8217;,</p>
<p>&#8216;ram&#8217; =&gt; &#8216;audio/x-pn-realaudio&#8217;,</p>
<p>&#8216;rm&#8217; =&gt; &#8216;audio/x-pn-realaudio&#8217;,</p>
<p>&#8216;rpm&#8217; =&gt; &#8216;audio/x-pn-realaudio-plugin&#8217;,</p>
<p>&#8216;ra&#8217; =&gt; &#8216;audio/x-realaudio&#8217;,</p>
<p>&#8216;wav&#8217; =&gt; &#8216;audio/x-wav&#8217;,</p>
<p>&#8216;pdb&#8217; =&gt; &#8216;chemical/x-pdb&#8217;,</p>
<p>&#8216;xyz&#8217; =&gt; &#8216;chemical/x-xyz&#8217;,</p>
<p>&#8216;bmp&#8217; =&gt; &#8216;image/bmp&#8217;,</p>
<p>&#8216;gif&#8217; =&gt; &#8216;image/gif&#8217;,</p>
<p>&#8216;ief&#8217; =&gt; &#8216;image/ief&#8217;,</p>
<p>&#8216;jpeg&#8217; =&gt; &#8216;image/jpeg&#8217;,</p>
<p>&#8216;jpg&#8217; =&gt; &#8216;image/jpeg&#8217;,</p>
<p>&#8216;jpe&#8217; =&gt; &#8216;image/jpeg&#8217;,</p>
<p>&#8216;png&#8217; =&gt; &#8216;image/png&#8217;,</p>
<p>&#8216;tiff&#8217; =&gt; &#8216;image/tiff&#8217;,</p>
<p>&#8216;tif&#8217; =&gt; &#8216;image/tiff&#8217;,</p>
<p>&#8216;djvu&#8217; =&gt; &#8216;image/vnd.djvu&#8217;,</p>
<p>&#8216;djv&#8217; =&gt; &#8216;image/vnd.djvu&#8217;,</p>
<p>&#8216;wbmp&#8217; =&gt; &#8216;image/vnd.wap.wbmp&#8217;,</p>
<p>&#8216;ras&#8217; =&gt; &#8216;image/x-cmu-raster&#8217;,</p>
<p>&#8216;pnm&#8217; =&gt; &#8216;image/x-portable-anymap&#8217;,</p>
<p>&#8216;pbm&#8217; =&gt; &#8216;image/x-portable-bitmap&#8217;,</p>
<p>&#8216;pgm&#8217; =&gt; &#8216;image/x-portable-graymap&#8217;,</p>
<p>&#8216;ppm&#8217; =&gt; &#8216;image/x-portable-pixmap&#8217;,</p>
<p>&#8216;rgb&#8217; =&gt; &#8216;image/x-rgb&#8217;,</p>
<p>&#8216;xbm&#8217; =&gt; &#8216;image/x-xbitmap&#8217;,</p>
<p>&#8216;xpm&#8217; =&gt; &#8216;image/x-xpixmap&#8217;,</p>
<p>&#8216;xwd&#8217; =&gt; &#8216;image/x-xwindowdump&#8217;,</p>
<p>&#8216;igs&#8217; =&gt; &#8216;model/iges&#8217;,</p>
<p>&#8216;iges&#8217; =&gt; &#8216;model/iges&#8217;,</p>
<p>&#8216;msh&#8217; =&gt; &#8216;model/mesh&#8217;,</p>
<p>&#8216;mesh&#8217; =&gt; &#8216;model/mesh&#8217;,</p>
<p>&#8216;silo&#8217; =&gt; &#8216;model/mesh&#8217;,</p>
<p>&#8216;wrl&#8217; =&gt; &#8216;model/vrml&#8217;,</p>
<p>&#8216;vrml&#8217; =&gt; &#8216;model/vrml&#8217;,</p>
<p>&#8216;css&#8217; =&gt; &#8216;text/css&#8217;,</p>
<p>&#8216;html&#8217; =&gt; &#8216;text/html&#8217;,</p>
<p>&#8216;htm&#8217; =&gt; &#8216;text/html&#8217;,</p>
<p>&#8216;asc&#8217; =&gt; &#8216;text/plain&#8217;,</p>
<p>&#8216;txt&#8217; =&gt; &#8216;text/plain&#8217;,</p>
<p>&#8216;rtx&#8217; =&gt; &#8216;text/richtext&#8217;,</p>
<p>&#8216;rtf&#8217; =&gt; &#8216;text/rtf&#8217;,</p>
<p>&#8216;sgml&#8217; =&gt; &#8216;text/sgml&#8217;,</p>
<p>&#8216;sgm&#8217; =&gt; &#8216;text/sgml&#8217;,</p>
<p>&#8216;tsv&#8217; =&gt; &#8216;text/tab-separated-values&#8217;,</p>
<p>&#8216;wml&#8217; =&gt; &#8216;text/vnd.wap.wml&#8217;,</p>
<p>&#8216;wmls&#8217; =&gt; &#8216;text/vnd.wap.wmlscript&#8217;,</p>
<p>&#8216;etx&#8217; =&gt; &#8216;text/x-setext&#8217;,</p>
<p>&#8216;xsl&#8217; =&gt; &#8216;text/xml&#8217;,</p>
<p>&#8216;xml&#8217; =&gt; &#8216;text/xml&#8217;,</p>
<p>&#8216;mpeg&#8217; =&gt; &#8216;video/mpeg&#8217;,</p>
<p>&#8216;mpg&#8217; =&gt; &#8216;video/mpeg&#8217;,</p>
<p>&#8216;mpe&#8217; =&gt; &#8216;video/mpeg&#8217;,</p>
<p>&#8216;qt&#8217; =&gt; &#8216;video/quicktime&#8217;,</p>
<p>&#8216;mov&#8217; =&gt; &#8216;video/quicktime&#8217;,</p>
<p>&#8216;mxu&#8217; =&gt; &#8216;video/vnd.mpegurl&#8217;,</p>
<p>&#8216;avi&#8217; =&gt; &#8216;video/x-msvideo&#8217;,</p>
<p>&#8216;movie&#8217; =&gt; &#8216;video/x-sgi-movie&#8217;,</p>
<p>&#8216;ice&#8217; =&gt; &#8216;x-conference/x-cooltalk&#8217;,</p>
<p>);<br />
?&gt;</p></blockquote>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li>2009年02月27号 -- <a href="http://ourapache.com/archives/206" title="http header详解">http header详解</a></li><li>2009年02月27号 -- <a href="http://ourapache.com/archives/200" title="header常用指令">header常用指令</a></li><li>2009年02月27号 -- <a href="http://ourapache.com/archives/190" title="header Content-Disposition参数说明">header Content-Disposition参数说明</a></li><li>2009年02月27号 -- <a href="http://ourapache.com/archives/187" title="header中的Cache-control参数说明">header中的Cache-control参数说明</a></li></ul>
	标签：<a href="http://ourapache.com/archives/tag/content-type" title="Content-Type" rel="tag">Content-Type</a>, <a href="http://ourapache.com/archives/tag/header" title="header" rel="tag">header</a>, <a href="http://ourapache.com/archives/category/http" title="HTTP相关知识" rel="tag">HTTP相关知识</a><br />
]]></content:encoded>
			<wfw:commentRss>http://ourapache.com/archives/193/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

