<?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: What is a proxy page? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-a-proxy-page/m-p/206328#M19159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;As long as your hosting provider allows you to run server-side code, you can use a proxy page. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OK, but the issue is with step 4 in the instructions that you linked to under where it says "ASP.NET", it says to use IIS to create a web application in the "default website" directory of the web server. In our shared hosting account we do not have access to IIS on the web server or the default web site directory. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;do&lt;/STRONG&gt;&lt;SPAN&gt; have a control panel which allows me to create 'Virtual Folders", I have used this to create seperate ASP.NET web applications within sub folders of the website. Could I simply put the proxy page in a new "virtual folder" of the website?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Nov 2011 18:55:44 GMT</pubDate>
    <dc:creator>GarethMann</dc:creator>
    <dc:date>2011-11-09T18:55:44Z</dc:date>
    <item>
      <title>What is a proxy page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-a-proxy-page/m-p/206323#M19154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am new to the Javascript API for ArcGIS. I am trying to get some of the samples working using my own data and ArcGIS Services. I note that many of the samples have this line of code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
//identify proxy page to use if the toJson payload to the geometry service is greater than 2000 characters. 
//If this null or not available the buffer operation will not work.&amp;nbsp; Otherwise it will do a http post to the proxy. 
esriConfig.defaults.io.proxyUrl = "/arcgisserver/apis/javascript/proxy/proxy.ashx"; 
esriConfig.defaults.io.alwaysUseProxy = false; 
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have absoluteluy no clue what any of this means! What is a proxy page? If I am using my own data can I just use the proxyURL provided by ESRI in the sample? If not how do I create my own one?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried googling the first comment "identify proxy page to use......." but all that came up in google was the same line from the code samples....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 11:55:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-a-proxy-page/m-p/206323#M19154</guid>
      <dc:creator>GarethMann</dc:creator>
      <dc:date>2011-11-08T11:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: What is a proxy page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-a-proxy-page/m-p/206324#M19155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please take a look at the conceptual help topic for using a proxy:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/ags_proxy.htm"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/ags_proxy.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using a proxy is a common technique in web development (not just GIS-based web dev) used to get around limitations imposed by the browser. Specifically, a proxy is used to get around the URL length limit that is present in IE and the &lt;/SPAN&gt;&lt;A href="http://en.wikipedia.org/wiki/Same_origin_policy"&gt;same origin policy&lt;/A&gt;&lt;SPAN&gt; present in all browsers. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Side note:&amp;nbsp; please &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/inside_defaults.htm"&gt;use esri.config as esriConfig was deprecated several releases ago&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 12:50:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-a-proxy-page/m-p/206324#M19155</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-11-08T12:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: What is a proxy page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-a-proxy-page/m-p/206325#M19156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wow, using this Javascript API is getting more and more complicated than I had originally imagined. In the instructions you linked to, it says this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;"The proxy page runs on your local web server, not on an ESRI server or on the ArcGIS Server computer (unless your web server also hosts the ArcGIS Server instance). "&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So essentially this is saying that the proxy page must reside on the same machine as the one hosting the webpage with the javascript code. Is this correct? For the proxyURL can I not just specify a IP Address to another web server? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason I ask this is because the web page I am developing will most likely be hosted on a remote shared web server, I just asked tech support with the hosting company and they informed me that the proxy page would not be allowed in a shared hosting environment for security reasons.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I do have access to another Web Server that I could put the proxy page on, in fact it is the same machine that has ArcGIS Server and hosts the services that the web page will use. Could I not just specify the URL to that machine as the proxy page location?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 14:09:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-a-proxy-page/m-p/206325#M19156</guid>
      <dc:creator>GarethMann</dc:creator>
      <dc:date>2011-11-08T14:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: What is a proxy page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-a-proxy-page/m-p/206326#M19157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;*Bump Bump*&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 16:36:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-a-proxy-page/m-p/206326#M19157</guid>
      <dc:creator>GarethMann</dc:creator>
      <dc:date>2011-11-09T16:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: What is a proxy page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-a-proxy-page/m-p/206327#M19158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;...this is saying that the proxy page must reside on the same machine as the one hosting the webpage with the javascript code. Is this correct? &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, your proxy must be on the same machine as your html/css/js files. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;For the proxyURL can I not just specify a IP Address to another web server? &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;You cannot do this. One of the main reasons to use a proxy is so that you can access cross domain resources. If you could use a proxy hosted on another server (AKA a cross domain resource), you wouldn't need a proxy. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Directly asking them if you can set up a proxy page is probably not the best way to phrase the question. Most hosting providers probably don't want to hear that you'd like to use their server as an intermediary to grab content from other sites.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One thing to clarify is that the proxy is server side code to fetch content from a URL. As long as your hosting provider allows you to run server-side code, you can use a proxy page. There are &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/ags_proxy.htm"&gt;example proxy pages available in PHP, .NET and Java&lt;/A&gt;&lt;SPAN&gt;. To use those, you need to specify which domains your proxy can access. This is explained in the comments in each proxy page.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 17:44:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-a-proxy-page/m-p/206327#M19158</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-11-09T17:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: What is a proxy page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-a-proxy-page/m-p/206328#M19159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;As long as your hosting provider allows you to run server-side code, you can use a proxy page. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OK, but the issue is with step 4 in the instructions that you linked to under where it says "ASP.NET", it says to use IIS to create a web application in the "default website" directory of the web server. In our shared hosting account we do not have access to IIS on the web server or the default web site directory. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;do&lt;/STRONG&gt;&lt;SPAN&gt; have a control panel which allows me to create 'Virtual Folders", I have used this to create seperate ASP.NET web applications within sub folders of the website. Could I simply put the proxy page in a new "virtual folder" of the website?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 18:55:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-a-proxy-page/m-p/206328#M19159</guid>
      <dc:creator>GarethMann</dc:creator>
      <dc:date>2011-11-09T18:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: What is a proxy page?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-a-proxy-page/m-p/206329#M19160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I &lt;STRONG style="font-style: italic;"&gt;do&lt;/STRONG&gt; have a control panel which allows me to create 'Virtual Folders", I have used this to create seperate ASP.NET web applications within sub folders of the website. Could I simply put the proxy page in a new "virtual folder" of the website?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that should work. I would set it up and give it a shot. Don't be afraid dive in and start trying. Those directions are meant to be as simple as possible to get you up and running when you're working on a local dev machine. When you're in production, it's up to you as to where you put things.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 19:42:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-is-a-proxy-page/m-p/206329#M19160</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-11-09T19:42:11Z</dc:date>
    </item>
  </channel>
</rss>

