Identify Task with Layer Definitions

445
1
01-21-2014 01:38 AM
JohnathanBarclay
Occasional Contributor
I am having problems similar to this thread.

I have set up a proxy page and output directory, which ensures that layerDefinitions applied to a ArcGISDynamicMapServiceLayer work fine regardless of their length.

However, when I try to apply layerDefinitions to an Identify Task, I am experiencing problems when the task's execute method runs a GET request and the url exceeds 2048 characters.

When I run my page in IE10 and Safari 7, I never experience any problems, regardless of http request method or url length, but in Chrome 32 and Firefox 26, with GET and url length > 2048, I am receiving a 404 error.

Although the Identify Task execute method sometimes runs POST and sometimes runs GET, I can't work out any logic as to which is used, and can't see anywhere in the API that allows you to specify one or the other.

Any help would be appreciated, thanks.
0 Kudos
1 Reply
JohnathanBarclay
Occasional Contributor
More information on this, it looks like IE10 isn't encoding the ' character to %27 whereas Chrome and Firefox are. This is keeping the request url under 2048 characters in IE.

Is there no way to force the execute method to use post?
0 Kudos