Forcing POST for HTTP / HTTPS

1847
6
01-04-2012 09:20 PM
iosappman
New Contributor
Looks like ArcGIS APIs decide internally on whether to do a POST or GET for mapservice communications, and it happens randomly. Is there a way to force POST methods for all map service communications like query task and identify tasks?
0 Kudos
6 Replies
NimeshJarecha
Esri Regular Contributor
The API does not send GET or POST requests randomly. If the size of the URL is less than 2000 characters then it sends GET, else POST. Currently there is no defined way for the developers to set whether to send request as GET or POST. We'll look into it.

Thanks for reporting.

Regards,
Nimesh
0 Kudos
KarelVondracek
New Contributor II
I've come across a situation when this automatic resolving doesn't work. I am sending a query to a map service with a very long where clause so the whole URL is more than 2200 characters long. But still the http request is being sent with GET method and I get an error 404.15 "The request filtering module is configured to deny a request where the query string is too long." My app is built with ArcGIS Silverlight API. Is there any solution to this problem? Thanks in advance...
0 Kudos
ChristopherJohnson1
Occasional Contributor II

Did you get a response to the long query string question?

Thanks...Chris

0 Kudos
KarelVondracek
New Contributor II

No, I did not. Neither I remember how we solved this issue. We haven't been building Silverlight based apps for years now.

0 Kudos
ChristopherJohnson1
Occasional Contributor II

Ha, ha!  Thanks.  I guess I should have looked at the date first.  Thanks anyway.

- Chris

0 Kudos
NimeshJarecha
Esri Regular Contributor
Kazan,

This forum belongs to ArcGIS Runtime SDK for iOS. I would suggest posting question at ArcGIS API for Silverlight forum so you get response from that API users.

Regards,
Nimesh
0 Kudos