<?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>Linden&#039;s Blog</title>
	<atom:link href="http://lindenliu.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://lindenliu.com</link>
	<description></description>
	<lastBuildDate>Mon, 19 Apr 2010 11:45:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>EncryptedLocalStore and  applicationDirectory in AIR</title>
		<link>http://lindenliu.com/2010/04/encrytedlocalstoreandapplicationdirectoryinair/</link>
		<comments>http://lindenliu.com/2010/04/encrytedlocalstoreandapplicationdirectoryinair/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 09:25:16 +0000</pubDate>
		<dc:creator>linden</dc:creator>
				<category><![CDATA[flex air flash]]></category>
		<category><![CDATA[data lost]]></category>
		<category><![CDATA[EncryptedLocalStore]]></category>

		<guid isPermaLink="false">http://lindenliu.com/?p=82</guid>
		<description><![CDATA[The EncryptedLocalStore class provides methods for setting and getting objects in the encrypted local data store for an AIR application. And the encrypted files are put in a subdirectory of the user&#8217;s application data directory; the subdirectory path is Adobe/AIR/ELS/appFolder. The appFolder equals to the applicationID  that you wrote in application description xml (xxx-app.xml) when the [...]]]></description>
			<content:encoded><![CDATA[<p>The EncryptedLocalStore class provides methods for setting and getting objects in the encrypted local data store for an AIR application. And the encrypted files are put in a subdirectory of the user&#8217;s application data directory; the subdirectory path is Adobe/AIR/ELS/appFolder. The appFolder equals to the applicationID  that you wrote in application description xml (xxx-app.xml) when the application is not signed by any valid certificate.   If the AIR application is signed by a valid certificate,  the appFolder should look like ApplicationID.19863E06A76A&#8230;B73154839644F.1. The hex string followed the ApplicationID must be the hashed value of all the files in application directory when<span style="color: #ff0000;"><strong> it was signed. <span style="color: #000000;"><span style="font-weight: normal;">The AIR application will hash their application directory when it starts up and check it with the original one. If it was not matched, the application&#8217;s Encrypted Local Store directory will be set to Adobe/AIR/ELS/ApplicationID. Therefore, the data stored in Encrypted Local Store directory seems lost from application view. The AIR application can&#8217;t read the data that it stored before. The result looks like below:</span></span></strong></span></p>
<p style="text-align: center;"><a href="http://lindenliu.com/wp-content/uploads/2010/04/before.jpg"><img class="aligncenter size-medium wp-image-83" title="before" src="http://lindenliu.com/wp-content/uploads/2010/04/before-300x58.jpg" alt="" width="450" height="87" /></a><br/>Figure 1. Normal</p>
<p style="text-align: center;"><a href="http://lindenliu.com/wp-content/uploads/2010/04/after.jpg"><img class="aligncenter size-medium wp-image-84" title="after" src="http://lindenliu.com/wp-content/uploads/2010/04/after-300x60.jpg" alt="" width="450" height="90" /></a>Figure2. Something Changes in Application Directory</p>
<p><strong>When will this situation happen? </strong><br />
If  any modification was done at the files under application directory, the Encrypted Local Store directory will be change. The information you stored in Encrypted Local Store class will be no longer available.</p>
<p><strong>What should we do? </strong><br />
Don&#8217;t write anything into application directory. Be careful when you are operating on File.applicationDirectory. Or never sign your application <img src='http://lindenliu.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://lindenliu.com/2010/04/encrytedlocalstoreandapplicationdirectoryinair/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe China Flash Platform Summit will be Broadcasted By Flash P2P</title>
		<link>http://lindenliu.com/2010/04/adobe-china-flash-platform-summit-will-be-broadcasted-by-flash-p2p/</link>
		<comments>http://lindenliu.com/2010/04/adobe-china-flash-platform-summit-will-be-broadcasted-by-flash-p2p/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 03:53:41 +0000</pubDate>
		<dc:creator>linden</dc:creator>
				<category><![CDATA[flex air flash]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[p2p]]></category>
		<category><![CDATA[summit]]></category>

		<guid isPermaLink="false">http://lindenliu.com/?p=80</guid>
		<description><![CDATA[There will be a Flash Platform Summit at Beijing. This summit will start at 9:00 am at April 21 GMT+0800. And the keynote sessions will be broadcasted using flash p2p technology.  All you need is to download flash player 10.1 RC at http://labs.adobe.com/downloads/flashplayer10.html.  After installation completed, go to http://202.108.6.253/fmsp2p/VideoPlayer.html?47. Then you can watch the summit [...]]]></description>
			<content:encoded><![CDATA[<p>There will be a Flash Platform Summit at Beijing. This summit will start at 9:00 am at April 21 GMT+0800. And the keynote sessions will be broadcasted using flash p2p technology.  All you need is to download flash player 10.1 RC at <a href="http://labs.adobe.com/downloads/flashplayer10.html">http://labs.adobe.com/downloads/flashplayer10.html</a>.  After installation completed, go to <a href="http://202.108.6.253/fmsp2p/VideoPlayer.html?47">http://202.108.6.253/fmsp2p/VideoPlayer.html?47</a>. Then you can watch the summit online when it begins. See you !</p>
]]></content:encoded>
			<wfw:commentRss>http://lindenliu.com/2010/04/adobe-china-flash-platform-summit-will-be-broadcasted-by-flash-p2p/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using Tasksel in Ubuntu to simplify your work.</title>
		<link>http://lindenliu.com/2010/04/using-tasksel-in-ubuntu-to-simplify-your-work/</link>
		<comments>http://lindenliu.com/2010/04/using-tasksel-in-ubuntu-to-simplify-your-work/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 13:26:27 +0000</pubDate>
		<dc:creator>linden</dc:creator>
				<category><![CDATA[Utility]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://lindenliu.com/?p=79</guid>
		<description><![CDATA[Tasksel is a useful tool to install or uninstall a set of software which is pre-defined by Ubuntu. If you want to install LAMP, use tasksel is very simple. Select the LAMP and press OK. Then tasksel will install all necessary files.  That&#8217;s cool.
The post is brought to you by lekhonee v0.7
]]></description>
			<content:encoded><![CDATA[<p>Tasksel is a useful tool to install or uninstall a set of software which is pre-defined by Ubuntu. If you want to install LAMP, use tasksel is very simple. Select the LAMP and press OK. Then tasksel will install all necessary files.  That&#8217;s cool.</p>
<p>The post is brought to you by <a href="http://fedorahosted.org/lekhonee">lekhonee</a> v0.7</p>
]]></content:encoded>
			<wfw:commentRss>http://lindenliu.com/2010/04/using-tasksel-in-ubuntu-to-simplify-your-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BackTrack: A Linux-based Penetration Testing Arsenal</title>
		<link>http://lindenliu.com/2010/04/backtrack-a-linux-based-penetration-testing-arsenal/</link>
		<comments>http://lindenliu.com/2010/04/backtrack-a-linux-based-penetration-testing-arsenal/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 02:54:10 +0000</pubDate>
		<dc:creator>linden</dc:creator>
				<category><![CDATA[Utility]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://lindenliu.com/?p=77</guid>
		<description><![CDATA[BackTrack is the highest rated and acclaimed Linux security distribution to date. It is a Linux-based penetration testing arsenal that aids security professionals in the ability to perform assessments in a purely native environment dedicated to hacking. You can run it on Live CD or flash driver.  BackTrack has been customized down to every package, [...]]]></description>
			<content:encoded><![CDATA[<p>BackTrack is the highest rated and acclaimed Linux security distribution to date. It is a Linux-based penetration testing arsenal that aids security professionals in the ability to perform assessments in a purely native environment dedicated to hacking. You can run it on Live CD or flash driver.  BackTrack has been customized down to every package, kernel configuration, script and patch solely for the purpose of the penetration tester.</p>
<p>Here is the link <a href="http://www.backtrack-linux.org/">http://www.backtrack-linux.org/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lindenliu.com/2010/04/backtrack-a-linux-based-penetration-testing-arsenal/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Adobe Flash Builder 4, Flex 4 and ColdFusion Builder go GA!</title>
		<link>http://lindenliu.com/2010/03/adobe-flash-builder-4-flex-4-and-coldfusion-builder-go-ga/</link>
		<comments>http://lindenliu.com/2010/03/adobe-flash-builder-4-flex-4-and-coldfusion-builder-go-ga/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 13:10:09 +0000</pubDate>
		<dc:creator>linden</dc:creator>
				<category><![CDATA[flex air flash]]></category>
		<category><![CDATA[cold fusion]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://lindenliu.com/?p=70</guid>
		<description><![CDATA[Adobe was announced that the GA releases of Flash Builder 4, Flex 4, and ColdFusion Builder are ready for prime-time. Today (3/22) we released:
Flex 4 &#8211; Including the new Spark skinning and component architecture enabling a new level of expressiveness in RIAs in addition to supporting the new Flash Catalyst to Flash Builder workflow.
Flash Builder [...]]]></description>
			<content:encoded><![CDATA[<p>Adobe was announced that the GA releases of Flash Builder 4, Flex 4, and ColdFusion Builder are ready for prime-time. Today (3/22) we released:</p>
<p>Flex 4 &#8211; Including the new Spark skinning and component architecture enabling a new level of expressiveness in RIAs in addition to supporting the new Flash Catalyst to Flash Builder workflow.</p>
<p>Flash Builder 4 &#8211; There are over 90 new features in this release, and you can use them with both Flex 3 and Flex 4 to gain big improvements in development time, integration and building more expressive apps. (Note: Please be sure to uninstall any FB4 beta SW before installing the release product)</p>
<p>ColdFusion Builder &#8211; This new Eclipse-based IDE for ColdFusion development is deeply integrated with ColdFusion 9 in addition to making it fast and easy for CF developers to create Flex applications with integration between ColdFusion Builder and Flash Builder。</p>
<p>• Read <a href="http://blogs.adobe.com/flex/" target="_blank">Andrew Shorten&#8217;s Flex Team Blog post</a></p>
<p>• <a href="http://www.adobe.com/go/try_flashbuilder" target="_blank">Get Flash Builder 4</a> (remember to uninstall any FB4 beta SW first)</p>
<p>• AdobeTV: <a href="http://tv.adobe.com/watch/adc-presents/developers-speak-out-about-flash-builder-4/" target="_blank">Learn what developers like about Flash Builder</a> in this video from Flash Camp Boston from March 19th</p>
<p>• AdobeTV: <a href="http://tv.adobe.com/watch/flash-platform-in-action/introducing-new-flash-platform-tools/" target="_blank">David Wadhwani, VP and GM of Adobe&#8217;s Platform BU introduces new Flash Platform products</a></p>
<p>• T<a href="http://www.adobe.com/devnet/flex/testdrive/" target="_blank">est drive Flex 4</a> &#8211; Take the Flex Test Drive: Build an application in an hour and learn about Flex 4 using this new guided, video tutorial</p>
<p>• <a href="http://www.adobe.com/devnet/flex/videotraining/" target="_blank">Flex-in-a-week free video training</a> &#8211; New for Flex 4</p>
<p>• <a href="http://www.adobe.com/go/trycoldfusionbuilder" target="_blank">Get ColdFusion Builder</a></p>
<p>• Video: <a href="http://www.adobe.com/devnet/coldfusion/articles/cf9_cfbuilder_videos/bforta_02.html">ColdFusion Builder Feature Tour</a></p>
<p>• <a href="http://www.adobe.com/products/flex/" target="_blank">Flex product info on adobe.com</a></p>
<p>• <a href="http://www.adobe.com/products/coldfusion/" target="_blank">ColdFusion product info on adobe.com</a></p>
<p class="zoundry_bw_tags">
  <!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com --><br />
  <span class="ztags"><span class="ztagspace">Technorati</span> : <a href="http://technorati.com/tag/ColdFusion" class="ztag" rel="tag">ColdFusion</a>, <a href="http://technorati.com/tag/flash" class="ztag" rel="tag">flash</a>, <a href="http://technorati.com/tag/flex" class="ztag" rel="tag">flex</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://lindenliu.com/2010/03/adobe-flash-builder-4-flex-4-and-coldfusion-builder-go-ga/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The easiest way to build a data collection server.</title>
		<link>http://lindenliu.com/2010/03/the-easiest-way-to-build-a-data-collection-server/</link>
		<comments>http://lindenliu.com/2010/03/the-easiest-way-to-build-a-data-collection-server/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 06:28:12 +0000</pubDate>
		<dc:creator>linden</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://lindenliu.com/?p=68</guid>
		<description><![CDATA[The easiest way to build a data collection server is using the apache&#8217;s access log. The access log can record all requests those are requested by clients. So the clients can upload its data to server by just calling a static page. At server side, all needs are a apache server and an empty page. [...]]]></description>
			<content:encoded><![CDATA[<p>The easiest way to build a data collection server is using the apache&#8217;s access log. The access log can record all requests those are requested by clients. So the clients can upload its data to server by just calling a static page. At server side, all needs are a apache server and an empty page. Thus, the load for the server will be lowest.</p>
<p><code>127.0.0.1 - - [27/Jan/2010:17:48:24 +0800] &quot;GET /abc/api.xml?msg=%22test%22 HTTP/1.1&quot; 302 225</code></p>
<p>After the data has been collected, you can use various tools to analyze the data you got. You can write a script to put your data into a database or convert the log files to another format which your analytic tools can recognize.</p>
<p>There is a use full toll for you to analyze the log called <a href="http://code.google.com/p/loghetti/">loghetti</a>. It allows you count your data.</p>
<p style="color:#008;text-align:right;"><small><em>Powered by</em> <a href="http://www.qumana.com/">Qumana</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://lindenliu.com/2010/03/the-easiest-way-to-build-a-data-collection-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash player 10.1 beta 3 release!</title>
		<link>http://lindenliu.com/2010/02/flash-player-10-1-beta-3-release/</link>
		<comments>http://lindenliu.com/2010/02/flash-player-10-1-beta-3-release/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 07:05:12 +0000</pubDate>
		<dc:creator>linden</dc:creator>
				<category><![CDATA[flex air flash]]></category>
		<category><![CDATA[flashplayer]]></category>

		<guid isPermaLink="false">http://lindenliu.com/?p=66</guid>
		<description><![CDATA[The flash player 10.1 beta3 release in adobe Labs see http://labs.adobe.com/technologies/flashplayer10/
]]></description>
			<content:encoded><![CDATA[<p>The flash player 10.1 beta3 release in adobe Labs see <span style="color:#0000FF;"><span style="font-family:Calibri, Verdana, Helvetica, Arial;"><span style="font-size:11pt"><span style="text-decoration:underline;"><a href="http://labs.adobe.com/technologies/flashplayer10/">http://labs.adobe.com/technologies/flashplayer10/</a></span></span></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://lindenliu.com/2010/02/flash-player-10-1-beta-3-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>File Operation in Adobe AIR</title>
		<link>http://lindenliu.com/2010/02/file-operation-in-adobe-air/</link>
		<comments>http://lindenliu.com/2010/02/file-operation-in-adobe-air/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 03:24:24 +0000</pubDate>
		<dc:creator>linden</dc:creator>
				<category><![CDATA[flex air flash]]></category>
		<category><![CDATA[air]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://lindenliu.com/?p=57</guid>
		<description><![CDATA[In AIR application, the file operation is as the same as in other applications( application compiled from C++ etc.).  The size of the file that air can open only depends on the system.
Which class to handle file?
The FileStream Class is the major Class for operating content of a file. A FileStream object has two methods [...]]]></description>
			<content:encoded><![CDATA[<p>In AIR application, the file operation is as the same as in other applications( application compiled from C++ etc.).  The size of the file that air can open only depends on the system.</p>
<p><strong><span style="font-size: 14pt;">Which class to handle file?</span></strong></p>
<p>The FileStream Class is the major Class for operating content of a file. A FileStream object has two methods for opening a file. One is synchrony open, another is asynchrony. The open operation will decide the behavior of other file operation you perform on the FileStream object. If the object is opened in synchrony, the operations such as write and read will be also synchrony. It means that the application can&#8217;t do anything until the read is finished. If you open a file in asynchrony method by calling openAsync, all reading and writing operations will be asynchrony. The application should handle to get results of operation the <a href="http://livedocs.adobe.com/flex/3/langref/flash/filesystem/FileStream.html">events</a>.</p>
<p><strong><span style="font-size: 14pt;">Why asynchrony open?</span></strong></p>
<p>The asynchrony open is used when application need to write a large data fragment. These writing operations are time consuming. If you don&#8217;t want your application behaves like death, you should use asynchrony open. Or your application needs to read from a stream, the data is not all ready when the application open the stream file. The synchrony read can only read the data already exists.</p>
<p>Actually, When you open a file, the file is not loaded into memory, it just create a handle in system to identify the opened file. So there is no size limitation by AIR-self, but system.</p>
<p><small><a rel="tag" href="http://technorati.com/tag/file"></a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://lindenliu.com/2010/02/file-operation-in-adobe-air/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linden Liu&#8217;s flex series: Tips of Writing ASDoc</title>
		<link>http://lindenliu.com/2010/02/linden-lius-flex-series-tips-of-writing-asdoc/</link>
		<comments>http://lindenliu.com/2010/02/linden-lius-flex-series-tips-of-writing-asdoc/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 14:21:18 +0000</pubDate>
		<dc:creator>linden</dc:creator>
				<category><![CDATA[flex air flash]]></category>
		<category><![CDATA[asdoc]]></category>
		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://lindenliu.com/?p=54</guid>
		<description><![CDATA[Tip 1: The sequence of the @param should be as the order of parameters defined in function.For example, you defined a function like this public function foo(param1:Type1, param2:Type2, param3:Type3):void. The asdoc should be like this:/*** xxxxxxxxxxx description of the function.* @param param1 xxxxx.* @param param2 xxxxx.* @param param3 xxxxx.* xxxxxxxxxxxxxxxx.*/public function foo(param1:Type1, param2:Type2, param3:Type3):voidIf parameters [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Tip 1:</strong> The sequence of the @param should be as the order of parameters defined in function.<br/>For example, you defined a function like this public function foo(param1:Type1, param2:Type2, param3:Type3):void. The asdoc should be like this:<br/><code>/**<br/>* xxxxxxxxxxx description of the function.<br/>* @param param1 xxxxx.<br/>* @param param2 xxxxx.<br/>* @param param3 xxxxx.<br/>* xxxxxxxxxxxxxxxx.<br/>*/<br/>public function foo(param1:Type1, param2:Type2, param3:Type3):void</code><br/>If parameters are not written in such order, the type of each parameter will misorder.</p>
<p><strong>Tip 2:</strong> Every sentence should be ended with a dot &#8220;.&#8221;, if the asdoc is using the language which dosen&#8217;t terminate sentence with &#8220;.&#8221;.</p>
<p><strong>Tip 3:</strong> Keep the special or escape characters in mind. The &#8220;&amp;&#8221; mark is a logic operator and it is also a escape character in ASDoc just like it in html. So the &#8220;&amp;&amp;&#8221; is not allowed in ASDoc. If you do that, it will be OK in Flex 3, but it will be caused an error when using Flex4. So It is better to make all escape charaters replaced.</p>
<p><br/>
<p class="zoundry_bw_tags">
  <!-- Tag links generated by Zoundry Blog Writer. Do not manually edit. http://www.zoundry.com --><br />
  <span class="ztags"><span class="ztagspace">Technorati</span> : <a href="http://technorati.com/tag/asdoc" class="ztag" rel="tag">asdoc</a>, <a href="http://technorati.com/tag/flex" class="ztag" rel="tag">flex</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://lindenliu.com/2010/02/linden-lius-flex-series-tips-of-writing-asdoc/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The flash.net.URLLoader will change your request method to GET.</title>
		<link>http://lindenliu.com/2010/01/the-flash-net-urlloader-will-change-your-request-method-to-get/</link>
		<comments>http://lindenliu.com/2010/01/the-flash-net-urlloader-will-change-your-request-method-to-get/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 08:30:34 +0000</pubDate>
		<dc:creator>linden</dc:creator>
				<category><![CDATA[flex air flash]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[POST]]></category>
		<category><![CDATA[URLRequest]]></category>

		<guid isPermaLink="false">http://lindenliu.com/?p=21</guid>
		<description><![CDATA[The URLLoader of flash will change your URLRequest method to GET if your request&#8217;s data property is empty. The test code is simple.
private function testPostWithEmptyData():void
{
var urlLoader:URLLoader = new URLLoader();
var req:URLRequest = new URLRequest();
req.url = &#8220;http://dict.cn/POSTWithoutData&#8221;;
req.method = URLRequestMethod.POST;
urlLoader.load(req);
}
private function testPostWithData():void
{
var urlLoader:URLLoader = new URLLoader();
var req:URLRequest = new URLRequest();
req.url = &#8220;http://dict.cn/POSTWithData&#8221;;
req.method = URLRequestMethod.POST;
req.data = new URLVariables(&#8220;q=hello&#8221;);
urlLoader.load(req);
}
Then you [...]]]></description>
			<content:encoded><![CDATA[<p>The URLLoader of flash will change your URLRequest method to GET if your request&#8217;s data property is empty. The test code is simple.</p>
<blockquote><p><span style="color: blue;">private</span> <span style="color: green;">function</span> testPostWithEmptyData():<span style="color: blue;">void</span></p>
<p>{</p>
<blockquote><p><span style="color: green;">var</span> urlLoader:URLLoader = <span style="color: blue;">new</span> URLLoader();</p>
<p><span style="color: green;">var</span> req:URLRequest = <span style="color: blue;">new</span> URLRequest();</p>
<p>req.url = <span style="color: red;">&#8220;http://dict.cn/POSTWithoutData&#8221;</span>;</p>
<p>req.method = URLRequestMethod.POST;</p>
<p>urlLoader.load(req);</p></blockquote>
<p>}</p>
<p><span style="color: blue;">private</span> <span style="color: green;">function</span> testPostWithData():<span style="color: blue;">void</span></p>
<p>{</p>
<blockquote><p><span style="color: green;">var</span> urlLoader:URLLoader = <span style="color: blue;">new</span> URLLoader();</p>
<p><span style="color: green;">var</span> req:URLRequest = <span style="color: blue;">new</span> URLRequest();</p>
<p>req.url = <span style="color: red;">&#8220;http://dict.cn/POSTWithData&#8221;</span>;</p>
<p>req.method = URLRequestMethod.POST;</p>
<p>req.data = new URLVariables(<span style="color: red;">&#8220;q=hello&#8221;</span>);</p>
<p>urlLoader.load(req);</p></blockquote>
<p>}</p></blockquote>
<p>Then you can capture the http request data in wireshark. The POST Request without data will be changed to GET, see follow snapshot</p>
<p><a href="http://lindenliu.com/wp-content/uploads/2010/01/withData2.jpg"><img class="size-full wp-image-31 alignnone" title="withData" src="http://lindenliu.com/wp-content/uploads/2010/01/withData2.jpg" alt="withData" width="471" height="222" /></a></p>
<p><strong>Figure 1. The POST Request Without any data.</strong></p>
<p><a href="http://lindenliu.com/wp-content/uploads/2010/01/withData1.jpg"><img class="alignnone size-full wp-image-26" title="withData" src="http://lindenliu.com/wp-content/uploads/2010/01/withData1.jpg" alt="withData" width="545" height="248" /></a></p>
<p><strong>Figure 2.The POST Request With Data.</strong></p>
<p>There is a note in help</p>
<p><strong>Note</strong>: If running in Flash Player and the referenced form has no body, Flash Player automatically uses a GET operation, even if the method is set to URLRequestMethod.POST. For this reason, it is recommended to always include a &#8220;dummy&#8221; body to ensure that the correct method is used. But actually in air application, the POST request will be treated as GET if there is no body.</p>
]]></content:encoded>
			<wfw:commentRss>http://lindenliu.com/2010/01/the-flash-net-urlloader-will-change-your-request-method-to-get/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
