crackernutter

QueryTask and proxy problem -

Discussion created by crackernutter on May 6, 2012
Latest reply on May 13, 2012 by crackernutter
I've constructed a query task that returns the number of points in a polygon. 
This query task works perfectly if the query is against an internal map service (map service on the same arcgis server as the proxy). 
However, if I set the query task to an external map service:

queryTaskWithin = new esri.tasks.QueryTask("http://rmgsc.cr.usgs.gov/ArcGIS/rest/services/nhss_haz/MapServer/0");


but change nothing else about the query or query task, it fails with the following error:

Error: Unable to load /proxy/proxy.ashx?http://rmgsc.cr.usgs.gov/ArcGIS/rest/services/nhss_haz/MapServer/0/query status:403


My proxy config shouldn't be the problem because - as I am on a test server, I've made it wide open, by setting ProxyConfig mustMatch="false". I didn't even need to include my internal map service in the proxy.config, and the query worked fine for that. 

Any ideas what could be going on?

Thanks, Jay

Outcomes