<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Proxy help? in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/proxy-help/m-p/69099#M1559</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1. You need to have the curl extension installed. See the instructions under the REQUIREMENTS section of proxy.php.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Yes, you'd need to have it go to the proxy. The general format is: [proxy url]?[resource url]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Try: "proxy.php?&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://66.134.213.74/WildEarth/WildCAD_NVSFC.kml" rel="nofollow" target="_blank"&gt;http://66.134.213.74/WildEarth/WildCAD_NVSFC.kml&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. In the proxy.php file, you need to allow it to load resources from &lt;/SPAN&gt;&lt;A href="http://66.134.213.74/"&gt;http://66.134.213.74/&lt;/A&gt;&lt;SPAN&gt; since it doesn't allow proxying to anywhere be default. Add an entry to the serverUrls array like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array( 'url' =&amp;gt; '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://66.134.213.74/" rel="nofollow" target="_blank"&gt;http://66.134.213.74/&lt;/A&gt;&lt;SPAN&gt;',&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'matchAll' =&amp;gt; true, 'token' =&amp;gt; '' )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 09 Jan 2011 21:04:46 GMT</pubDate>
    <dc:creator>DasaPaddock</dc:creator>
    <dc:date>2011-01-09T21:04:46Z</dc:date>
    <item>
      <title>Proxy help?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/proxy-help/m-p/69096#M1556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am attempting to get the KML widget (created by Luke Berndt) working in my SFV 1.3. I think the problem I am having is that the KML file I am attempting to add is hosted on the web at a server location that uses an IP address. I currently get the following error when I try to point to this KML file in my config file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Error #2044: Unhandled SecurityErrorEvent:. text=Error #2048: Security sandbox violation: http://wcgisweb2.admin.washoecounty.us/Emergency_src/bin-debug/com/esri/solutions/flexviewer/widgets/KMLWidget.swf cannot load data from http://66.134.213.74/WildEarth/WildCAD_NVSFC.kml.&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is my limited understanding that Flex doesn't like SWFs that point to external data that is hosted outside of the local domain. I have read that in order to get around this, it is necessary to create a proxy file in ASP.Net, PHP, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have some questions about the proxy process...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Given my description above, is this the likely problem I am encountering?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Is there a brief and coherent description available of the proxy process and what it is actually doing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Is there a brief and coherent set of instructions available for implementing the proxy solution (preferably in PHP)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Is there another method of solving this issue without having to turn to ASP.Net, PHP, etc.?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jan 2011 17:48:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/proxy-help/m-p/69096#M1556</guid>
      <dc:creator>MatthewLawton</dc:creator>
      <dc:date>2011-01-07T17:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy help?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/proxy-help/m-p/69097#M1557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The easiest solution may be to put a crossdomain.xml file at &lt;/SPAN&gt;&lt;A href="http://66.134.213.74/crossdomain.xml"&gt;http://66.134.213.74/crossdomain.xml&lt;/A&gt;&lt;SPAN&gt; if you have access to that. If not, than using a proxy is really the only other solution since Flash will give you this security error if the domains are not the same and the other domain does not have a crossdomain.xml file granting access to your swf's domain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is some proxy information along with a few different implementations:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/help/content/proxy.htm"&gt;http://help.arcgis.com/en/webapi/flex/help/content/proxy.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jan 2011 19:31:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/proxy-help/m-p/69097#M1557</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2011-01-07T19:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy help?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/proxy-help/m-p/69098#M1558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I do not have access to&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://66.134.213.74/"&gt;http://66.134.213.74/&lt;/A&gt;&lt;SPAN&gt;. It is somebody else's server that I have no control over, so I guess we have to work through the proxy page implementation. Okay, let's go through it step-by-step, here are the problems I am encountering.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I have copied the "proxy.php" file to my server. I am running PHP and I put the file a directory that runs PHP files. Do I need to install any additional extensions to PHP to get this to work? (Please keep in mind I am very much a novice when it comes to PHP)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Where do I point the source parameter in the KMLWidget.xml? Do I point it to the PHP file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. I am unclear exactly what to edit in the proxy.php to point it to the right location. The documentation makes it sound like every external request is going to get routed to this other server(&lt;/SPAN&gt;&lt;A href="http://66.134.213.74/"&gt;http://66.134.213.74/&lt;/A&gt;&lt;SPAN&gt;). I only want the requests from the KMLWidget to get routed to the other server. How do I make that happen without screwing up my other widgets?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for helping me through this, Dasa.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jan 2011 20:36:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/proxy-help/m-p/69098#M1558</guid>
      <dc:creator>MatthewLawton</dc:creator>
      <dc:date>2011-01-07T20:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy help?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/proxy-help/m-p/69099#M1559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1. You need to have the curl extension installed. See the instructions under the REQUIREMENTS section of proxy.php.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Yes, you'd need to have it go to the proxy. The general format is: [proxy url]?[resource url]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Try: "proxy.php?&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://66.134.213.74/WildEarth/WildCAD_NVSFC.kml" rel="nofollow" target="_blank"&gt;http://66.134.213.74/WildEarth/WildCAD_NVSFC.kml&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. In the proxy.php file, you need to allow it to load resources from &lt;/SPAN&gt;&lt;A href="http://66.134.213.74/"&gt;http://66.134.213.74/&lt;/A&gt;&lt;SPAN&gt; since it doesn't allow proxying to anywhere be default. Add an entry to the serverUrls array like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array( 'url' =&amp;gt; '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://66.134.213.74/" rel="nofollow" target="_blank"&gt;http://66.134.213.74/&lt;/A&gt;&lt;SPAN&gt;',&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'matchAll' =&amp;gt; true, 'token' =&amp;gt; '' )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jan 2011 21:04:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/proxy-help/m-p/69099#M1559</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2011-01-09T21:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy help?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/proxy-help/m-p/69100#M1560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I setup cURL (I think). It shows up in my PHPinfo.php file as enabled.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I made the appropriate adjustments to the KMLWidget.ini and the proxy.php file, but I am getting this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
 at com.esri.solutions.flexviewer.widgets::KMLWidget/init()&lt;C&gt;
 at com.esri.solutions.flexviewer.widgets::KMLWidget/___KMLWidget_BaseWidget1_widgetConfigLoaded()&lt;C&gt;
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.core::UIComponent/dispatchEvent()&lt;C&gt;
 at com.esri.solutions.flexviewer::BaseWidget/configResult()&lt;C&gt;
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()&lt;C&gt;
 at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()&lt;C&gt;
 at mx.rpc::Responder/result()&lt;C&gt;
 at mx.rpc::AsyncRequest/acknowledge()&lt;C&gt;
 at DirectHTTPMessageResponder/completeHandler()&lt;C&gt;
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at flash.net::URLLoader/onComplete()&lt;/C&gt;&lt;/C&gt;&lt;/C&gt;&lt;/C&gt;&lt;/C&gt;&lt;/C&gt;&lt;/C&gt;&lt;/C&gt;&lt;/C&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe this just isn't going to work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:38:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/proxy-help/m-p/69100#M1560</guid>
      <dc:creator>MatthewLawton</dc:creator>
      <dc:date>2021-12-10T22:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy help?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/proxy-help/m-p/69101#M1561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What happens when you load the this url directly in your browser?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://server/proxy.php?http://66.134.213.74/WildEarth/WildCAD_NVSFC.kml"&gt;http://server/proxy.php?http://66.134.213.74/WildEarth/WildCAD_NVSFC.kml&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 18:39:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/proxy-help/m-p/69101#M1561</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2011-01-10T18:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy help?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/proxy-help/m-p/69102#M1562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Firefox I just get a blank page. In IE8 I get an Internal Server Error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess that probably means I don't have cURL setup correctly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 19:09:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/proxy-help/m-p/69102#M1562</guid>
      <dc:creator>MatthewLawton</dc:creator>
      <dc:date>2011-01-11T19:09:20Z</dc:date>
    </item>
  </channel>
</rss>

