Select to view content in your preferred language

Consuming a Geoprocessing service when is recommended to use GET, or to use POST

333
0
11-17-2023 07:16 AM
Cristian_Galindo
Frequent Contributor

A GP tool was created using ArcGIS Pro, then this tool has been published on an instance of ArcGIS Server.

The GP service is available and I can see its web REST endpoint :

Cristian_Galindo_0-1700233699189.png

when the option Executing task is used either GET or POST, I get the results expected.

I was reading the documentation about the Geoprocessing service:

https://pro.arcgis.com/en/pro-app/3.1/help/analysis/geoprocessing/share-analysis/what-is-a-geoproces...

https://pro.arcgis.com/en/pro-app/3.1/help/analysis/geoprocessing/share-analysis/general-considerati...

https://pro.arcgis.com/en/pro-app/3.1/help/analysis/geoprocessing/share-analysis/using-geoprocessing...

I based my knowledge in :

https://www.w3schools.com/tags/ref_httpmethods.asp

https://stackoverflow.com/questions/46585/when-do-you-use-post-and-when-do-you-use-get

 

but I wonder, how this general definitions applied to the ESRI Services universe?

If I am planning to consume the geoprocessing tool using the REST endpoint, which one should I choose? GET or POST?

 

 

 

0 Kudos
0 Replies