<?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>PHPMan--Live and learn &#187; HTTP_RAW_POST_DATA</title>
	<atom:link href="http://www.phpman.com.cn/archives/tag/http_raw_post_data/feed" rel="self" type="application/rss+xml" />
	<link>http://www.phpman.com.cn</link>
	<description>不积跬步,无以至千里;不积小流,无以成江海</description>
	<lastBuildDate>Wed, 28 Jul 2010 02:39:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>php的$HTTP_RAW_POST_DATA</title>
		<link>http://www.phpman.com.cn/archives/143</link>
		<comments>http://www.phpman.com.cn/archives/143#comments</comments>
		<pubDate>Mon, 11 May 2009 09:25:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[HTTP_RAW_POST_DATA]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.phpman.com.cn/?p=143</guid>
		<description><![CDATA[今天一同事问我，他用了Content-Type=text/xml型，提交了一个xml文档内容给了php server,要怎么获得这个POST数据。
这把我愣住了，以前确实没写过这样的POST，赶紧查手册，发现有$HTTP_RAW_POST_DATA 这一项。对此的解释是：The RAW / uninterpreted HTTP POST information can be accessed with:   $GLOBALS['HTTP_RAW_POST_DATA'] This is useful in cases where the post Content-Type is not something PHP understands (such as text/xml).
意思是，由于PHP默认只识别application/x-www.form-urlencoded标准的数据类型，因此，对型如text/xml的内容无法解析为$_POST数组，故保留原型，交给$HTTP_RAW_POST_DAT来接收。
]]></description>
		<wfw:commentRss>http://www.phpman.com.cn/archives/143/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
