<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[Can a SWF (using URLLoader) access HTTPS webservice?Flash能发起Https请求的条件。]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Thu, 22 May 2014 03:59:15 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	老外写了个AS3的库支持ssl的https：https://code.google.com/p/as3httpclientlib/downloads/list<br/><br/>I have a fla (using ActionScript 3.0) I am compiling in Flash. I am using URLRequest and URLLoader to access a http webservice. <br/>var loader:URLLoader = new URLLoader();&nbsp;&nbsp; <br/>var request:URLRequest = new URLRequest("http:test.webservice.com");&nbsp;&nbsp;&nbsp;&nbsp;<br/>try &#123;<br/>&nbsp;&nbsp; loader.load(request);<br/>&#125; catch (error:Error) &#123;<br/>&nbsp;&nbsp; trace("Unable to load requested document.");<br/>&#125;<br/><br/>This works fine - however if I try and access a https address I get<br/><br/>httpStatusHandler: [HTTPStatusEvent type="httpStatus" bubbles=false cancelable=false eventPhase=2 status=0]<br/>ioErrorHandler: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: https://test.webservice.com"]<br/><br/>How can I retrieve data from a https web service? Does the SWF have to be hosted on a SSL secured page?<br/><br/>If you install the flash debug player, you'll probably see the following in the log:<br/>** Security Sandbox Violation ***<br/>Connection to https://www.example.com/service/ halted - not permitted from http://www.example.com/your.swf<br/><br/>Error: Request for resource at https://www.example.com/service/ by requestor from http://www.example.com/your.swf is denied due to lack of policy file permissions.<br/>By default a swf hosted in a http cannot access https --it's considered a different domain.<br/><br/>You'll need to set up the appropriate crossdomain.xml policy file, with care to verify the Content-Type is text/* or another whitelisted value. Additionally, you'll need a meta-policy file with "secure=false", which will allow https to be accessed from http.<br/><br/><textarea name="code" class="php" rows="15" cols="100">
 <allow-access-from domain="www.example.com" secure="false" />
</textarea><br/><br/>来自：http://stackoverflow.com/questions/1387608/can-a-swf-using-urlloader-access-https-webservice<br/>参考：http://hi.baidu.com/badzzzz/item/47b59cbe7d939e911846977b
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] Can a SWF (using URLLoader) access HTTPS webservice?Flash能发起Https请求的条件。]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>