<?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: PHP Proxy Script for cross-domain requests</title>
	<atom:link href="http://www.abdulqabiz.com/blog/archives/2007/05/31/php-proxy-script-for-cross-domain-requests/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.abdulqabiz.com/blog/archives/2007/05/31/php-proxy-script-for-cross-domain-requests/</link>
	<description>a developer and entrepreneur on web technologies, adobe flash platform (flex, flash, air), web, opensource, linux, free software, usability, startups, India...</description>
	<lastBuildDate>Mon, 15 Mar 2010 12:09:01 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: sxc</title>
		<link>http://www.abdulqabiz.com/blog/archives/2007/05/31/php-proxy-script-for-cross-domain-requests/comment-page-1/#comment-6881</link>
		<dc:creator>sxc</dc:creator>
		<pubDate>Tue, 02 Mar 2010 11:03:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=310#comment-6881</guid>
		<description>wat a loser</description>
		<content:encoded><![CDATA[<p>wat a loser</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gisnap</title>
		<link>http://www.abdulqabiz.com/blog/archives/2007/05/31/php-proxy-script-for-cross-domain-requests/comment-page-1/#comment-6849</link>
		<dc:creator>gisnap</dc:creator>
		<pubDate>Wed, 23 Dec 2009 13:05:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=310#comment-6849</guid>
		<description>Its really cool, I came to know this really worth visiting, just bookmarked your site.&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://gisnap.com/&quot; rel=&quot;nofollow&quot;&gt;http://gisnap.com/&lt;/a&gt; &lt;br&gt;The place where fun never ends</description>
		<content:encoded><![CDATA[<p>Its really cool, I came to know this really worth visiting, just bookmarked your site.</p>
<p><a href="http://gisnap.com/" rel="nofollow">http://gisnap.com/</a> <br />The place where fun never ends</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: petkusj</title>
		<link>http://www.abdulqabiz.com/blog/archives/2007/05/31/php-proxy-script-for-cross-domain-requests/comment-page-1/#comment-6820</link>
		<dc:creator>petkusj</dc:creator>
		<pubDate>Wed, 25 Nov 2009 03:55:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=310#comment-6820</guid>
		<description>Hi Abdul,&lt;br&gt;&lt;br&gt;Thanks for responding. I&#039;m afraid I get nothing back from the server. You can see the code above in action at &lt;a href=&quot;http://www.cuculcan.com/testwikimedia.html&quot; rel=&quot;nofollow&quot;&gt;http://www.cuculcan.com/testwikimedia.html&lt;/a&gt;. Other than Flash returning the error code, that&#039;s it. Firebug error console returns nothing.&lt;br&gt;&lt;br&gt;I do know that in the Flash authoring environment I can load that image (without using a proxy) and fill a shape because it doesn&#039;t throw a security error. But, of course, I can&#039;t do it in the browser. So I do know that nothing is wrong with that image.&lt;br&gt;&lt;br&gt;Again, any help would be greatly appreciated. If you go to my website -- &lt;a href=&quot;http://www.cuculcan.com/&quot; rel=&quot;nofollow&quot;&gt;http://www.cuculcan.com/&lt;/a&gt; -- you can see how I&#039;m using the background images.&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;&lt;br&gt;Jennifer</description>
		<content:encoded><![CDATA[<p>Hi Abdul,</p>
<p>Thanks for responding. I&#39;m afraid I get nothing back from the server. You can see the code above in action at <a href="http://www.cuculcan.com/testwikimedia.html" rel="nofollow">http://www.cuculcan.com/testwikimedia.html</a>. Other than Flash returning the error code, that&#39;s it. Firebug error console returns nothing.</p>
<p>I do know that in the Flash authoring environment I can load that image (without using a proxy) and fill a shape because it doesn&#39;t throw a security error. But, of course, I can&#39;t do it in the browser. So I do know that nothing is wrong with that image.</p>
<p>Again, any help would be greatly appreciated. If you go to my website &#8212; <a href="http://www.cuculcan.com/" rel="nofollow">http://www.cuculcan.com/</a> &#8212; you can see how I&#39;m using the background images.</p>
<p>Thanks,</p>
<p>Jennifer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abdul Qabiz</title>
		<link>http://www.abdulqabiz.com/blog/archives/2007/05/31/php-proxy-script-for-cross-domain-requests/comment-page-1/#comment-6818</link>
		<dc:creator>Abdul Qabiz</dc:creator>
		<pubDate>Wed, 25 Nov 2009 02:38:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=310#comment-6818</guid>
		<description>@Jennifer, I would need to run your code and see what might be going wrong. Did you use any tool like firebug (extention for Firefox) to see if image is getting downloaded at client side?.</description>
		<content:encoded><![CDATA[<p>@Jennifer, I would need to run your code and see what might be going wrong. Did you use any tool like firebug (extention for Firefox) to see if image is getting downloaded at client side?.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikkel</title>
		<link>http://www.abdulqabiz.com/blog/archives/2007/05/31/php-proxy-script-for-cross-domain-requests/comment-page-1/#comment-6819</link>
		<dc:creator>Mikkel</dc:creator>
		<pubDate>Mon, 23 Nov 2009 10:38:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=310#comment-6819</guid>
		<description>Thanks for sharing, just save me.</description>
		<content:encoded><![CDATA[<p>Thanks for sharing, just save me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: petkusj</title>
		<link>http://www.abdulqabiz.com/blog/archives/2007/05/31/php-proxy-script-for-cross-domain-requests/comment-page-1/#comment-6808</link>
		<dc:creator>petkusj</dc:creator>
		<pubDate>Thu, 19 Nov 2009 05:34:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=310#comment-6808</guid>
		<description>Hi Abdul,&lt;br&gt;&lt;br&gt;I&#039;m trying to get the proxy to work with this simple Flash example:&lt;br&gt;&lt;br&gt;var loader:Loader = new Loader();&lt;br&gt;var loadercontext:LoaderContext = new LoaderContext();&lt;br&gt;loadercontext.checkPolicyFile = true;&lt;br&gt;var urlrequest:URLRequest = new URLRequest(&quot;http://www.mydomain.com/scripts/proxy.php&quot;);&lt;br&gt;&lt;br&gt;var urlvariables:URLVariables = new URLVariables();&lt;br&gt;urlvariables.url = escape(&quot;http://upload.wikimedia.org/wikipedia/en/3/39/The_Tonight_Show_with_Conan_O&#039;Brien-Intertitle.jpg&quot;);&lt;br&gt;urlvariables.mimeType = &quot;image/jpeg&quot;;&lt;br&gt;&lt;br&gt;urlrequest.data = urlvariables;&lt;br&gt;urlrequest.method = URLRequestMethod.POST;&lt;br&gt;loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadHandler);&lt;br&gt;loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);&lt;br&gt;loader.load(urlrequest, loadercontext);&lt;br&gt;var shape:Shape = new Shape();&lt;br&gt;addChild(shape)&lt;br&gt;&lt;br&gt;function errorHandler(e:IOErrorEvent):void {&lt;br&gt;	ExternalInterface.call(&quot;window.alert&quot;, e.toString());&lt;br&gt;}&lt;br&gt;function loadHandler(evt:Event):void {&lt;br&gt;	var bitmapdata:BitmapData = new BitmapData(loader.contentLoaderInfo.width, loader.contentLoaderInfo.height, false);&lt;br&gt;	bitmapdata.draw(loader);&lt;br&gt;	shape.graphics.beginBitmapFill(bitmapdata, null, true);&lt;br&gt;	shape.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);&lt;br&gt;	shape.graphics.endFill();&lt;br&gt;}&lt;br&gt;&lt;br&gt;with the idea that if I can get this to work, I can get my application to work, but I&#039;m getting an Error #2124, which is telling me that Flash doesn&#039;t understand the file type.&lt;br&gt;&lt;br&gt;I&#039;d appreciate any help with this. wikimedia doesn&#039;t use crossdomain.xml files.&lt;br&gt;&lt;br&gt;Thanks, Jennifer</description>
		<content:encoded><![CDATA[<p>Hi Abdul,</p>
<p>I&#39;m trying to get the proxy to work with this simple Flash example:</p>
<p>var loader:Loader = new Loader();<br />var loadercontext:LoaderContext = new LoaderContext();<br />loadercontext.checkPolicyFile = true;<br />var urlrequest:URLRequest = new URLRequest(&#8221;http://www.mydomain.com/scripts/proxy.php&#8221;);</p>
<p>var urlvariables:URLVariables = new URLVariables();<br />urlvariables.url = escape(&#8221;http://upload.wikimedia.org/wikipedia/en/3/39/The_Tonight_Show_with_Conan_O&#39;Brien-Intertitle.jpg&#8221;);<br />urlvariables.mimeType = &#8220;image/jpeg&#8221;;</p>
<p>urlrequest.data = urlvariables;<br />urlrequest.method = URLRequestMethod.POST;<br />loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadHandler);<br />loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);<br />loader.load(urlrequest, loadercontext);<br />var shape:Shape = new Shape();<br />addChild(shape)</p>
<p>function errorHandler(e:IOErrorEvent):void {<br />	ExternalInterface.call(&#8221;window.alert&#8221;, e.toString());<br />}<br />function loadHandler(evt:Event):void {<br />	var bitmapdata:BitmapData = new BitmapData(loader.contentLoaderInfo.width, loader.contentLoaderInfo.height, false);<br />	bitmapdata.draw(loader);<br />	shape.graphics.beginBitmapFill(bitmapdata, null, true);<br />	shape.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);<br />	shape.graphics.endFill();<br />}</p>
<p>with the idea that if I can get this to work, I can get my application to work, but I&#39;m getting an Error #2124, which is telling me that Flash doesn&#39;t understand the file type.</p>
<p>I&#39;d appreciate any help with this. wikimedia doesn&#39;t use crossdomain.xml files.</p>
<p>Thanks, Jennifer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tibin mathew</title>
		<link>http://www.abdulqabiz.com/blog/archives/2007/05/31/php-proxy-script-for-cross-domain-requests/comment-page-1/#comment-3077</link>
		<dc:creator>Tibin mathew</dc:creator>
		<pubDate>Tue, 16 Jun 2009 08:36:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=310#comment-3077</guid>
		<description>// If it&#039;s a POST, put the POST data in the body
if ($_POST[&#039;https://newport.ingrammicro.com/mustang&#039;]) {
echo(&quot;hai&quot;);
	$postvars = &quot;2.014-01811114-018111MDt8772CG4339pW824D7441&quot;;
	while ($element = current($_POST)) {
		$postvars .= key($_POST).&#039;=&#039;.$element.&#039;&amp;&#039;;
		next($_POST);
	}
	curl_setopt ($session, CURLOPT_POST, true);
	curl_setopt ($session, CURLOPT_POSTFIELDS, $postvars);
}

here in your code its saying if its a post put the post data in the body, is it the html body of my php page or any thing else, plz say about this, where should i give my xml document to post to the url????</description>
		<content:encoded><![CDATA[<p>// If it&#8217;s a POST, put the POST data in the body<br />
if ($_POST['https://newport.ingrammicro.com/mustang']) {<br />
echo(&#8221;hai&#8221;);<br />
	$postvars = &#8220;2.014-01811114-018111MDt8772CG4339pW824D7441&#8243;;<br />
	while ($element = current($_POST)) {<br />
		$postvars .= key($_POST).&#8217;=&#8217;.$element.&#8217;&amp;&#8217;;<br />
		next($_POST);<br />
	}<br />
	curl_setopt ($session, CURLOPT_POST, true);<br />
	curl_setopt ($session, CURLOPT_POSTFIELDS, $postvars);<br />
}</p>
<p>here in your code its saying if its a post put the post data in the body, is it the html body of my php page or any thing else, plz say about this, where should i give my xml document to post to the url????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TELLO</title>
		<link>http://www.abdulqabiz.com/blog/archives/2007/05/31/php-proxy-script-for-cross-domain-requests/comment-page-1/#comment-1568</link>
		<dc:creator>TELLO</dc:creator>
		<pubDate>Wed, 06 May 2009 06:55:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=310#comment-1568</guid>
		<description>Hi Abdul,
i have problem. I use the script to get XML datas from other domain. I use the url urlencoded like your advice. It works in FireFox perfect, but not in IE. I tested IE 6, 7 and 8, but no result.
You write it works in IE with mime type after URL. So i need XML, what must i put on the end that it works in IE, because i guess it is my problem...
THANKS
</description>
		<content:encoded><![CDATA[<p>Hi Abdul,<br />
i have problem. I use the script to get XML datas from other domain. I use the url urlencoded like your advice. It works in FireFox perfect, but not in IE. I tested IE 6, 7 and 8, but no result.<br />
You write it works in IE with mime type after URL. So i need XML, what must i put on the end that it works in IE, because i guess it is my problem&#8230;<br />
THANKS</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.abdulqabiz.com/blog/archives/2007/05/31/php-proxy-script-for-cross-domain-requests/comment-page-1/#comment-1567</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 22 Apr 2009 19:40:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=310#comment-1567</guid>
		<description>Hi I&#039;m trying to use this with Google Calendar and AS3 but its throwing up an IOError. The AS3 causing the problem is:
var xmlLoader:URLLoader = new URLLoader( new URLRequest(&#039;proxy.php?url=&#039;+ xmlURL) );
Any ideas? I have the proxy.php file in the same folder as the swf.
@Alex: If you&#039;re putting the calendar events into an array, you could try sorting that using myArray.sortOn(&#039;myProperty&#039;, Array.DESCENDING);
</description>
		<content:encoded><![CDATA[<p>Hi I&#8217;m trying to use this with Google Calendar and AS3 but its throwing up an IOError. The AS3 causing the problem is:<br />
var xmlLoader:URLLoader = new URLLoader( new URLRequest(&#8217;proxy.php?url=&#8217;+ xmlURL) );<br />
Any ideas? I have the proxy.php file in the same folder as the swf.<br />
@Alex: If you&#8217;re putting the calendar events into an array, you could try sorting that using myArray.sortOn(&#8217;myProperty&#8217;, Array.DESCENDING);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jayp</title>
		<link>http://www.abdulqabiz.com/blog/archives/2007/05/31/php-proxy-script-for-cross-domain-requests/comment-page-1/#comment-1566</link>
		<dc:creator>jayp</dc:creator>
		<pubDate>Fri, 03 Apr 2009 00:12:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=310#comment-1566</guid>
		<description>Thanks!
I didn&#039;t set mime-type and everything but MSIE worked fine. So if MSIE not working, make sure mime type is specified after url.
</description>
		<content:encoded><![CDATA[<p>Thanks!<br />
I didn&#8217;t set mime-type and everything but MSIE worked fine. So if MSIE not working, make sure mime type is specified after url.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abdul Qabiz</title>
		<link>http://www.abdulqabiz.com/blog/archives/2007/05/31/php-proxy-script-for-cross-domain-requests/comment-page-1/#comment-1565</link>
		<dc:creator>Abdul Qabiz</dc:creator>
		<pubDate>Fri, 06 Mar 2009 20:18:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=310#comment-1565</guid>
		<description>Hi Guys
Thanks for feedback.
@jaris Yeah, this script can do better, if tweaked. I can imaging, for progressive video you would need to have logic so it can buffer the output. Unfortunately, I don&#039;t have time right now to add or test that.
If you figure out the fix, please let me know.
Thanks
-abdul
</description>
		<content:encoded><![CDATA[<p>Hi Guys<br />
Thanks for feedback.<br />
@jaris Yeah, this script can do better, if tweaked. I can imaging, for progressive video you would need to have logic so it can buffer the output. Unfortunately, I don&#8217;t have time right now to add or test that.<br />
If you figure out the fix, please let me know.<br />
Thanks<br />
-abdul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jaris</title>
		<link>http://www.abdulqabiz.com/blog/archives/2007/05/31/php-proxy-script-for-cross-domain-requests/comment-page-1/#comment-1564</link>
		<dc:creator>jaris</dc:creator>
		<pubDate>Thu, 05 Mar 2009 14:24:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=310#comment-1564</guid>
		<description>I have tried the script to access a distant flv file. It works, but I have to wait a lot of time to see the video. Have you an idea to have a progressive download of the file.
</description>
		<content:encoded><![CDATA[<p>I have tried the script to access a distant flv file. It works, but I have to wait a lot of time to see the video. Have you an idea to have a progressive download of the file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avery</title>
		<link>http://www.abdulqabiz.com/blog/archives/2007/05/31/php-proxy-script-for-cross-domain-requests/comment-page-1/#comment-1563</link>
		<dc:creator>Avery</dc:creator>
		<pubDate>Wed, 04 Mar 2009 06:13:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=310#comment-1563</guid>
		<description>Fantastic. Absolutly fantastic.  Thank you so much for this excellent little file.
Life saver!
</description>
		<content:encoded><![CDATA[<p>Fantastic. Absolutly fantastic.  Thank you so much for this excellent little file.<br />
Life saver!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: earspasm</title>
		<link>http://www.abdulqabiz.com/blog/archives/2007/05/31/php-proxy-script-for-cross-domain-requests/comment-page-1/#comment-1562</link>
		<dc:creator>earspasm</dc:creator>
		<pubDate>Fri, 13 Feb 2009 03:05:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=310#comment-1562</guid>
		<description>Totally brilliant, elegant and simple. Thanks so much for your work on this.
</description>
		<content:encoded><![CDATA[<p>Totally brilliant, elegant and simple. Thanks so much for your work on this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maria</title>
		<link>http://www.abdulqabiz.com/blog/archives/2007/05/31/php-proxy-script-for-cross-domain-requests/comment-page-1/#comment-1561</link>
		<dc:creator>Maria</dc:creator>
		<pubDate>Mon, 22 Dec 2008 19:21:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.abdulqabiz.com/wordpress/?p=310#comment-1561</guid>
		<description>You should make this able so that people can get on myspace.com from here.
</description>
		<content:encoded><![CDATA[<p>You should make this able so that people can get on myspace.com from here.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
