<?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-Disposition</title>
	<atom:link href="http://ourapache.com/archives/tag/content-disposition/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-Disposition参数说明</title>
		<link>http://ourapache.com/archives/190</link>
		<comments>http://ourapache.com/archives/190#comments</comments>
		<pubDate>Fri, 27 Feb 2009 03:00:39 +0000</pubDate>
		<dc:creator>OurApache</dc:creator>
				<category><![CDATA[HTTP相关知识]]></category>
		<category><![CDATA[Content-Disposition]]></category>
		<category><![CDATA[header]]></category>

		<guid isPermaLink="false">http://www.ourapache.com/?p=190</guid>
		<description><![CDATA[Content-Disposition参数：
attachment --- 作为附件下载    
inline --- 在线打开
具体使用如：header("Content-Disposition: inline; filename=文件名.mp3");]]></description>
			<content:encoded><![CDATA[<p>Content-Disposition参数：<br />
attachment &#8212; 作为附件下载   <br />
inline &#8212; 在线打开<br />
具体使用如：<a href="http://ourapache.com/archives/tag/header" class="st_tag internal_tag" rel="tag" title="标签 header 下的日志">header</a>(“<a href="http://ourapache.com/archives/tag/content-disposition" class="st_tag internal_tag" rel="tag" title="标签 Content-Disposition 下的日志">Content-Disposition</a>: inline; filename=文件名.mp3&#8243;);</p>
<p>需要注意以下几个问题：<br />
Content-disposition是MIME协议的扩展，由于多方面的安全性考虑没有被标准化，所以可能某些浏览器不支持，比如说IE4.01</p>
<p>我们可以使用程序来使用它，也可以在web服务器（比如IIS）上使用它，只需要在http header上做相应的设置即可</p>
<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/193" title="header Content-Type类型">header Content-Type类型</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-disposition" title="Content-Disposition" rel="tag">Content-Disposition</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/190/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

