<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: flash policy service daemon</title>
	<atom:link href="http://ammonlauritzen.com/blog/2008/04/22/flash-policy-service-daemon/feed/" rel="self" type="application/rss+xml" />
	<link>http://ammonlauritzen.com/blog/2008/04/22/flash-policy-service-daemon/</link>
	<description>and still for good reason.</description>
	<lastBuildDate>Mon, 05 Jul 2010 21:26:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ammon</title>
		<link>http://ammonlauritzen.com/blog/2008/04/22/flash-policy-service-daemon/comment-page-1/#comment-184813</link>
		<dc:creator>Ammon</dc:creator>
		<pubDate>Fri, 05 Feb 2010 17:36:18 +0000</pubDate>
		<guid isPermaLink="false">http://ammonlauritzen.com/blog/?p=362#comment-184813</guid>
		<description>Unfortunately, you cannot use http to serve up socket policy files at all - you can only serve policies for http via http. If you want to serve a socket policy, it needs to come from a socket server so you either have to modify your existing socket server or you have to run something like the daemon I have here.</description>
		<content:encoded><![CDATA[<p>Unfortunately, you cannot use http to serve up socket policy files at all &#8211; you can only serve policies for http via http. If you want to serve a socket policy, it needs to come from a socket server so you either have to modify your existing socket server or you have to run something like the daemon I have here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://ammonlauritzen.com/blog/2008/04/22/flash-policy-service-daemon/comment-page-1/#comment-184810</link>
		<dc:creator>James</dc:creator>
		<pubDate>Fri, 05 Feb 2010 15:51:19 +0000</pubDate>
		<guid isPermaLink="false">http://ammonlauritzen.com/blog/?p=362#comment-184810</guid>
		<description>Sorry I forget to escape characters for HTML on my last post.

I’m having some sort of strange blockage with the p-r-f. I can call it up through my socket in the browsers with http://192.168.1.100:843/crossdomain.xml and also have configured my C# chat server to respond with the same file if the request header regex = policy-file-request. I have also validated that the server is sending out the entire file including the terminating null character (0). 

According to adobe, there has been some changes to the policy schema and the crossdomain.xml file should include:

&gt;site-control permitted-cross-domain-policies=&quot;all&quot;/&lt;


and for socket connections your header need to include:
Content-Type: text/x-cross-domain-policy 



In AS I added the command:
Security.loadPolicyFile(“xmlsocket://192.168.1.100:843);
…yet I still get:

Error: Request for resource at xmlsocket://192.168.1.100:843 by requestor from http://192.168.1.100:843/chat.swf is denied due to lack of policy file permissions.

This has been a 2.5 week journey of frustation for me. Is there someone I can pay to debug my code so I can get on with my life?</description>
		<content:encoded><![CDATA[<p>Sorry I forget to escape characters for HTML on my last post.</p>
<p>I’m having some sort of strange blockage with the p-r-f. I can call it up through my socket in the browsers with <a href="http://192.168.1.100:843/crossdomain.xml" rel="nofollow">http://192.168.1.100:843/crossdomain.xml</a> and also have configured my C# chat server to respond with the same file if the request header regex = policy-file-request. I have also validated that the server is sending out the entire file including the terminating null character (0). </p>
<p>According to adobe, there has been some changes to the policy schema and the crossdomain.xml file should include:</p>
<p>&gt;site-control permitted-cross-domain-policies=&#8221;all&#8221;/&lt;</p>
<p>and for socket connections your header need to include:<br />
Content-Type: text/x-cross-domain-policy </p>
<p>In AS I added the command:<br />
Security.loadPolicyFile(“xmlsocket://192.168.1.100:843);<br />
…yet I still get:</p>
<p>Error: Request for resource at xmlsocket://192.168.1.100:843 by requestor from <a href="http://192.168.1.100:843/chat.swf" rel="nofollow">http://192.168.1.100:843/chat.swf</a> is denied due to lack of policy file permissions.</p>
<p>This has been a 2.5 week journey of frustation for me. Is there someone I can pay to debug my code so I can get on with my life?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://ammonlauritzen.com/blog/2008/04/22/flash-policy-service-daemon/comment-page-1/#comment-184809</link>
		<dc:creator>James</dc:creator>
		<pubDate>Fri, 05 Feb 2010 15:47:47 +0000</pubDate>
		<guid isPermaLink="false">http://ammonlauritzen.com/blog/?p=362#comment-184809</guid>
		<description>I&#039;m having some sort of strange blockage with the p-r-f.  I can call it up through my socket in the browsers with http://192.168.1.100:843/crossdomain.xml and also have configured my C# chat server to respond with the same file if the request header regex = .  I have also validated that the server is sending out the entire file including the terminating null character ().  

According to adobe, there has been some changes to the policy schema and the crossdomain.xml file should include:

	
	


and for socket connections your header need to include:
Content-Type: text/x-cross-domain-policy 

In AS I added the command:
Security.loadPolicyFile(&quot;xmlsocket://192.168.1.100:843);
...yet I still get:

Error: Request for resource at xmlsocket://192.168.1.100:843 by requestor from http://192.168.1.100:843/chat.swf is denied due to lack of policy file permissions.

This has been a 2.5 week journey of frustation for me.  Is there someone I can pay to debug my code so I can get on with my life?</description>
		<content:encoded><![CDATA[<p>I&#8217;m having some sort of strange blockage with the p-r-f.  I can call it up through my socket in the browsers with <a href="http://192.168.1.100:843/crossdomain.xml" rel="nofollow">http://192.168.1.100:843/crossdomain.xml</a> and also have configured my C# chat server to respond with the same file if the request header regex = .  I have also validated that the server is sending out the entire file including the terminating null character ().  </p>
<p>According to adobe, there has been some changes to the policy schema and the crossdomain.xml file should include:</p>
<p>and for socket connections your header need to include:<br />
Content-Type: text/x-cross-domain-policy </p>
<p>In AS I added the command:<br />
Security.loadPolicyFile(&#8220;xmlsocket://192.168.1.100:843);<br />
&#8230;yet I still get:</p>
<p>Error: Request for resource at xmlsocket://192.168.1.100:843 by requestor from <a href="http://192.168.1.100:843/chat.swf" rel="nofollow">http://192.168.1.100:843/chat.swf</a> is denied due to lack of policy file permissions.</p>
<p>This has been a 2.5 week journey of frustation for me.  Is there someone I can pay to debug my code so I can get on with my life?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ammon</title>
		<link>http://ammonlauritzen.com/blog/2008/04/22/flash-policy-service-daemon/comment-page-1/#comment-184734</link>
		<dc:creator>Ammon</dc:creator>
		<pubDate>Thu, 04 Feb 2010 07:39:48 +0000</pubDate>
		<guid isPermaLink="false">http://ammonlauritzen.com/blog/?p=362#comment-184734</guid>
		<description>Flash likes making repeat connections on the policy port. I&#039;ve had various degrees of success with making it behave. One thing I seem to recall helping in this case is null terminating the policy data you send - ie, append &quot;\0&quot; to the xml.

My production servers currently each average about 12k policy xml requests a day and while they have long since evolved from the code I&#039;m sharing here, the core logic is very similar. See if the \0 makes it less likely to re-request the data.

I&#039;m sorry I can&#039;t be more helpful right now, I&#039;m too busy banging out new code to look over this old class tonight.</description>
		<content:encoded><![CDATA[<p>Flash likes making repeat connections on the policy port. I&#8217;ve had various degrees of success with making it behave. One thing I seem to recall helping in this case is null terminating the policy data you send &#8211; ie, append &#8220;\0&#8243; to the xml.</p>
<p>My production servers currently each average about 12k policy xml requests a day and while they have long since evolved from the code I&#8217;m sharing here, the core logic is very similar. See if the \0 makes it less likely to re-request the data.</p>
<p>I&#8217;m sorry I can&#8217;t be more helpful right now, I&#8217;m too busy banging out new code to look over this old class tonight.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nizzy</title>
		<link>http://ammonlauritzen.com/blog/2008/04/22/flash-policy-service-daemon/comment-page-1/#comment-184731</link>
		<dc:creator>Nizzy</dc:creator>
		<pubDate>Thu, 04 Feb 2010 07:20:27 +0000</pubDate>
		<guid isPermaLink="false">http://ammonlauritzen.com/blog/?p=362#comment-184731</guid>
		<description>to run this script correctly, make sure:

1) convert the format to unix. because this file has CR&#124;LF at the end of lines. You need LF only.
2) chmod +x FlashPolicyService.php
3) then you can run as in ./FlashPolicyService.php</description>
		<content:encoded><![CDATA[<p>to run this script correctly, make sure:</p>
<p>1) convert the format to unix. because this file has CR|LF at the end of lines. You need LF only.<br />
2) chmod +x FlashPolicyService.php<br />
3) then you can run as in ./FlashPolicyService.php</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nizzy</title>
		<link>http://ammonlauritzen.com/blog/2008/04/22/flash-policy-service-daemon/comment-page-1/#comment-184728</link>
		<dc:creator>Nizzy</dc:creator>
		<pubDate>Thu, 04 Feb 2010 06:48:12 +0000</pubDate>
		<guid isPermaLink="false">http://ammonlauritzen.com/blog/?p=362#comment-184728</guid>
		<description>Dear Ammon, I ran your script and I get this in the /tmp/flash-policy.log, 

Last line shows that it got invalid request. is this normal? How can I fix that? thank you.

[10-02-04 01:55:42] fps: connection accepted from XX.XX.XX.XX, Resource id #13
[10-02-04 01:55:42] fps: sending policy xml to Resource id #13
[10-02-04 01:55:43] fps: connection accepted from XX.XX.XX.XX, Resource id #14
[10-02-04 01:55:43] fps: got invalid request from Resource id #14</description>
		<content:encoded><![CDATA[<p>Dear Ammon, I ran your script and I get this in the /tmp/flash-policy.log, </p>
<p>Last line shows that it got invalid request. is this normal? How can I fix that? thank you.</p>
<p>[10-02-04 01:55:42] fps: connection accepted from XX.XX.XX.XX, Resource id #13<br />
[10-02-04 01:55:42] fps: sending policy xml to Resource id #13<br />
[10-02-04 01:55:43] fps: connection accepted from XX.XX.XX.XX, Resource id #14<br />
[10-02-04 01:55:43] fps: got invalid request from Resource id #14</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nizzy</title>
		<link>http://ammonlauritzen.com/blog/2008/04/22/flash-policy-service-daemon/comment-page-1/#comment-184727</link>
		<dc:creator>Nizzy</dc:creator>
		<pubDate>Thu, 04 Feb 2010 06:44:28 +0000</pubDate>
		<guid isPermaLink="false">http://ammonlauritzen.com/blog/?p=362#comment-184727</guid>
		<description>If you don&#039;t have posix running in your server, you can activate it by installing the following cmd. I have plesk 9 on linux.

yum install php-process</description>
		<content:encoded><![CDATA[<p>If you don&#8217;t have posix running in your server, you can activate it by installing the following cmd. I have plesk 9 on linux.</p>
<p>yum install php-process</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fightskillz.com &#187; Adobe AIR, Flex, and Socket Policy Files</title>
		<link>http://ammonlauritzen.com/blog/2008/04/22/flash-policy-service-daemon/comment-page-1/#comment-184253</link>
		<dc:creator>Fightskillz.com &#187; Adobe AIR, Flex, and Socket Policy Files</dc:creator>
		<pubDate>Mon, 25 Jan 2010 23:39:20 +0000</pubDate>
		<guid isPermaLink="false">http://ammonlauritzen.com/blog/?p=362#comment-184253</guid>
		<description>[...] Working PHP Cli Socket Policy File Server [...]</description>
		<content:encoded><![CDATA[<p>[...] Working PHP Cli Socket Policy File Server [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nizzy</title>
		<link>http://ammonlauritzen.com/blog/2008/04/22/flash-policy-service-daemon/comment-page-1/#comment-184198</link>
		<dc:creator>Nizzy</dc:creator>
		<pubDate>Sun, 24 Jan 2010 06:48:24 +0000</pubDate>
		<guid isPermaLink="false">http://ammonlauritzen.com/blog/?p=362#comment-184198</guid>
		<description>Ammon,

I think I don&#039;t have posix installed although phpinfo shows it&#039;s enabled. I tried to install it on Plesk, and it shows that it&#039;s installed.

yum -y install php-posix
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * atomic: www5.atomicorp.com
Excluding Packages from Plesk Server Administrator
Finished
Setting up Install Process
Package php-common-5.2.12-2.el5.art.x86_64 already installed and latest version
Package php-common-5.2.12-2.el5.art.i386 already installed and latest version
Nothing to do


Could you please show me how to install posix? thank you</description>
		<content:encoded><![CDATA[<p>Ammon,</p>
<p>I think I don&#8217;t have posix installed although phpinfo shows it&#8217;s enabled. I tried to install it on Plesk, and it shows that it&#8217;s installed.</p>
<p>yum -y install php-posix<br />
Loaded plugins: fastestmirror<br />
Loading mirror speeds from cached hostfile<br />
 * atomic: www5.atomicorp.com<br />
Excluding Packages from Plesk Server Administrator<br />
Finished<br />
Setting up Install Process<br />
Package php-common-5.2.12-2.el5.art.x86_64 already installed and latest version<br />
Package php-common-5.2.12-2.el5.art.i386 already installed and latest version<br />
Nothing to do</p>
<p>Could you please show me how to install posix? thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nizzy</title>
		<link>http://ammonlauritzen.com/blog/2008/04/22/flash-policy-service-daemon/comment-page-1/#comment-184196</link>
		<dc:creator>Nizzy</dc:creator>
		<pubDate>Sun, 24 Jan 2010 06:21:07 +0000</pubDate>
		<guid isPermaLink="false">http://ammonlauritzen.com/blog/?p=362#comment-184196</guid>
		<description>Ammon, regarding security warning, I already used secure=&quot;false&quot;, actually I am using your file to deliver xdomain policy. I still see that warning in the policy log file. Do you have any  more idea how to resolve this? thank you

// define the xml policy &quot;file&quot;
$policy_file =
    &#039;&#039;.
    &#039;&#039;.
		&#039;&#039;.
        &#039;&#039;.
    &#039;&#039;;</description>
		<content:encoded><![CDATA[<p>Ammon, regarding security warning, I already used secure=&#8221;false&#8221;, actually I am using your file to deliver xdomain policy. I still see that warning in the policy log file. Do you have any  more idea how to resolve this? thank you</p>
<p>// define the xml policy &#8220;file&#8221;<br />
$policy_file =<br />
    &#8221;.<br />
    &#8221;.<br />
		&#8221;.<br />
        &#8221;.<br />
    &#8221;;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
