I have an esri 3.9 webapp running with a weblogic server backend. I've already set up a proxy servlet to use when I want to load data from a site that's not CORS enabled, which append an API key to the URL when the request is sent out. That works well. However, I want to be able to use that proxy class for other services, which have different API keys. I looked at manually checking the url to verify what key the proxy should add before making the call, but I would like to handle that from the front end and make the back end look for an argument sent on the proxy call. From what I already have set up, I set the proxy by calling esri.addProxyRule({
urlPrefix: "api.blahblah.com",
proxyUrl: "/gis/proxy"
}); I tried to add the argument to the url, but the esri javascript seems to just ignore the arguments and only take the base url of /gis/proxy. So my question is: Does anybody know of a way I could replace proxyUrl: "/gis/proxy" with something like proxyUrl: "/gis/proxy?request=blahblahservice" so that I can differentiate on the backend which service it is? ..or is there a way to disable that ignoring of the arguments?
... View more