garethmann

What is a proxy page?

Discussion created by garethmann on Nov 8, 2011
Latest reply on Nov 9, 2011 by DSwingley-esristaff
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:

//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.  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; 


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?

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....

Outcomes