<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Request length/size constrain on Query API?? in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/request-length-size-constrain-on-query-api/m-p/5612#M34</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What's the version of your arcgis server (and service pack) ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Mar 2013 17:33:35 GMT</pubDate>
    <dc:creator>nicogis</dc:creator>
    <dc:date>2013-03-05T17:33:35Z</dc:date>
    <item>
      <title>Request length/size constrain on Query API??</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/request-length-size-constrain-on-query-api/m-p/5609#M31</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having problems in using the query API. I need to use a polygon geometry to query a point layer so it returns all the intersecting points.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The formatted query looks something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="http://myarcgisservice/MapServer/0/query?geometryType=esriGeometryPolygon&amp;amp;geometry=" rel="nofollow" target="_blank"&gt;http://myarcgisservice/MapServer/0/query?geometryType=esriGeometryPolygon&amp;amp;geometry=&lt;/A&gt;&lt;SPAN&gt;{%22spatialReference%22:{wkid:xxx},%22rings%22:[[[x1,y1],[x2,y2],[x3,y3],...,[xn, yn],[x1,y1]]]}&amp;amp;f=json&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works fine when the geometry is not complex, but as the number of vertices is getting bigger, it starts to return me "400 Bad request" and "404" error. For example, if I have a polygon of more than 50 vertices, the query will return me "400" error...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am wondering if there is a constraint/threshold on number of vertices of a polygon? Or there is a length constraint on the request (say, 255 characters)? I can't seem to find documentations on this...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 15:41:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/request-length-size-constrain-on-query-api/m-p/5609#M31</guid>
      <dc:creator>deleted-user-Q-LwcOmvpdjW</dc:creator>
      <dc:date>2013-03-05T15:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Request length/size constrain on Query API??</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/request-length-size-constrain-on-query-api/m-p/5610#M32</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;see &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/#ags_proxy"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/#ags_proxy&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;"... The application creates requests that exceed 2048 characters. While there is no official maximum length for a URL some modern browsers have imposed limits. Using a proxy works around this issue by performing a POST request rather than a GET request. POST requests are not limited by the 2048 character maximum because the information is transferred in the header instead of the URL. Common situations where you may exceed the URL length are: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Buffer complex polygons then use the buffered geometry with a query task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Specify a spatial reference using well-known text (wkt)..."&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 16:45:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/request-length-size-constrain-on-query-api/m-p/5610#M32</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2013-03-05T16:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Request length/size constrain on Query API??</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/request-length-size-constrain-on-query-api/m-p/5611#M33</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;see &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/#ags_proxy"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/#ags_proxy&lt;/A&gt;&lt;BR /&gt;"... The application creates requests that exceed 2048 characters. While there is no official maximum length for a URL some modern browsers have imposed limits. Using a proxy works around this issue by performing a POST request rather than a GET request. POST requests are not limited by the 2048 character maximum because the information is transferred in the header instead of the URL. Common situations where you may exceed the URL length are: &lt;BR /&gt;-Buffer complex polygons then use the buffered geometry with a query task.&lt;BR /&gt;-Specify a spatial reference using well-known text (wkt)..."&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Domenico.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually&lt;/SPAN&gt;&lt;STRONG&gt; I am using POST other than GET&lt;/STRONG&gt;&lt;SPAN&gt;. The URL I posted is just an example. The problem happened whenever the json geometry shape is long.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Meng&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 17:24:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/request-length-size-constrain-on-query-api/m-p/5611#M33</guid>
      <dc:creator>deleted-user-Q-LwcOmvpdjW</dc:creator>
      <dc:date>2013-03-05T17:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Request length/size constrain on Query API??</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/request-length-size-constrain-on-query-api/m-p/5612#M34</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What's the version of your arcgis server (and service pack) ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 17:33:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/request-length-size-constrain-on-query-api/m-p/5612#M34</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2013-03-05T17:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Request length/size constrain on Query API??</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/request-length-size-constrain-on-query-api/m-p/5613#M35</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the same issue with ArcGIS Server extension. I am using ArcGIS Server 10.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the POST request, it works fine using the the request form generated by ArcGIS Server. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, it failed when I wrapped the parameters in a json object, and sent a POST request with the json object to the endpoint directly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have a JavaScript example showing how to send a POST request to the extension?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 23:30:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/request-length-size-constrain-on-query-api/m-p/5613#M35</guid>
      <dc:creator>GenhanChen</dc:creator>
      <dc:date>2013-10-08T23:30:53Z</dc:date>
    </item>
  </channel>
</rss>

