<?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: ServiceFeatureTable query with large geometry in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/servicefeaturetable-query-with-large-geometry/m-p/1220518#M11421</link>
    <description>&lt;P&gt;Have you also tried running the query in a browser?&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.&amp;nbsp;&lt;A href="https://geo.abs.gov.au/arcgis/rest/services/ASGS2021/SA4/MapServer/0/query" target="_blank"&gt;Query: SA4 (ID: 0) (abs.gov.au)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For `Where`, if you enter&amp;nbsp;1=1 then click:&lt;/P&gt;&lt;P&gt;Query (GET): I get the query response (after some time).&lt;/P&gt;&lt;P&gt;Query (POST): I get a 403 - could there be a server-side issue with POST requests?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding ArcGIS Runtime, the API will automatically switch internally from GET to POST when the URI length requires it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;A couple of options for diagnosing these types of issues:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Run a network monitoring tool such as Fiddler to see the request/response.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;Subscribe to the request begin event to see the requests being made e.g.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;ArcGISHttpClientHandler.HttpRequestBegin += (sender, httpRequestMessage) =&amp;gt; 
{
    Debug.WriteLine(httpRequestMessage.Method);
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Oct 2022 23:43:00 GMT</pubDate>
    <dc:creator>MichaelBranscomb</dc:creator>
    <dc:date>2022-10-10T23:43:00Z</dc:date>
    <item>
      <title>ServiceFeatureTable query with large geometry</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/servicefeaturetable-query-with-large-geometry/m-p/1220106#M11415</link>
      <description>&lt;P&gt;I am performing a QueryFeaturesAsync on a ServiceFeatureTable which is configured with the url&amp;nbsp;&amp;nbsp;&lt;A href="https://geo.abs.gov.au/arcgis/rest/services/ASGS2021/SA4/MapServer/0" target="_blank" rel="noopener"&gt;https://geo.abs.gov.au/arcgis/rest/services/ASGS2021/SA4/MapServer/0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It works fine, except when I have 'large' geometries, e.g. a polygon &amp;gt;12 points in it, I get a 403 (Forbidden) error. I think this is their way of telling me that my GET request is too long. I think the underlying data transferred is JSON, and it seems to have 20+ significant figures in each coordinate. I'm only guessing that&amp;nbsp;ServiceFeatureTable always uses GET. If true, how can I force it to do a POST, which doesn't have size limits?&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2022 05:55:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/servicefeaturetable-query-with-large-geometry/m-p/1220106#M11415</guid>
      <dc:creator>MarcHillman</dc:creator>
      <dc:date>2022-10-08T05:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: ServiceFeatureTable query with large geometry</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/servicefeaturetable-query-with-large-geometry/m-p/1220518#M11421</link>
      <description>&lt;P&gt;Have you also tried running the query in a browser?&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.&amp;nbsp;&lt;A href="https://geo.abs.gov.au/arcgis/rest/services/ASGS2021/SA4/MapServer/0/query" target="_blank"&gt;Query: SA4 (ID: 0) (abs.gov.au)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For `Where`, if you enter&amp;nbsp;1=1 then click:&lt;/P&gt;&lt;P&gt;Query (GET): I get the query response (after some time).&lt;/P&gt;&lt;P&gt;Query (POST): I get a 403 - could there be a server-side issue with POST requests?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding ArcGIS Runtime, the API will automatically switch internally from GET to POST when the URI length requires it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;A couple of options for diagnosing these types of issues:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Run a network monitoring tool such as Fiddler to see the request/response.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;Subscribe to the request begin event to see the requests being made e.g.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;ArcGISHttpClientHandler.HttpRequestBegin += (sender, httpRequestMessage) =&amp;gt; 
{
    Debug.WriteLine(httpRequestMessage.Method);
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 23:43:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/servicefeaturetable-query-with-large-geometry/m-p/1220518#M11421</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2022-10-10T23:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: ServiceFeatureTable query with large geometry</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/servicefeaturetable-query-with-large-geometry/m-p/1220528#M11422</link>
      <description>&lt;P&gt;Very interesting. I had previously used Wireshark to eavesdrop on the signalling with the ArcGis server. It was exclusively TCP and TLS packets (no HTTP). It was either encrypted or compressed, so I could make no sense of it.&lt;/P&gt;&lt;P&gt;Your adding an EventHandler techinque worked very well. I built a small debug tool to display Request and Response (output below). It confirms that small geometries use GET whilst large ones use POST. The debug trace below is from a large geometry. There is an initial GET (OK) and then a POST. This POST returns a 403 (Forbidden). I have noticed this behaviour even on the interactive interface to this service. I wrote to the owner about POST's not working about 3 weeks ago, and I've heard nothing. I'm 3 for nothing with this service owner &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I think the situation is that POST is either disabled or broken for this service, and I will have to settle for the low resolution GET method.&lt;/P&gt;&lt;P&gt;Request -------------------------------------------------------&lt;BR /&gt;RequestUri &lt;A href="https://geo.abs.gov.au/arcgis/rest/services/ASGS2021/SA4/MapServer/0?f=json&amp;amp;returnAdvancedSymbols=true" target="_blank"&gt;https://geo.abs.gov.au/arcgis/rest/services/ASGS2021/SA4/MapServer/0?f=json&amp;amp;returnAdvancedSymbols=true&lt;/A&gt;&lt;BR /&gt;Method GET&lt;BR /&gt;Headers User-Agent: ArcGISRuntime-NET/100.15 (Windows 10.0.19044; Win64; .NET6.0.9; devmode)&lt;BR /&gt;Referer: &lt;A href="http://arcgis.com/" target="_blank"&gt;http://arcgis.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Response -------------------------------------------------------&lt;BR /&gt;StatusCode OK&lt;BR /&gt;Headers Connection: keep-alive&lt;BR /&gt;Date: Mon, 10 Oct 2022 23:39:15 GMT&lt;BR /&gt;Cache-Control: public, must-revalidate, max-age=0&lt;BR /&gt;Strict-Transport-Security: max-age=31536000&lt;BR /&gt;X-Content-Type-Options: nosniff&lt;BR /&gt;X-XSS-Protection: 1; mode=block&lt;BR /&gt;ETag: 4c0a51b&lt;BR /&gt;X-Cache: Miss from cloudfront&lt;BR /&gt;Via: 1.1 1147e5ecd1f71df7e8584b06e2b9be6e.cloudfront.net (CloudFront)&lt;BR /&gt;X-Amz-Cf-Pop: MEL50-C2&lt;BR /&gt;X-Amz-Cf-Id: KujWL3Yg1ANDY1AHHGAOD9XGBFLbYNHcozUWiu1SeAdLqYzF7aXBvA==&lt;BR /&gt;X-Frame-Options: SAMEORIGIN&lt;BR /&gt;Referrer-Policy: strict-origin-when-cross-origin&lt;BR /&gt;Vary: Origin&lt;/P&gt;&lt;P&gt;Content Esri.ArcGISRuntime.Http.Caching.CachedHttpContent&lt;/P&gt;&lt;P&gt;Request -------------------------------------------------------&lt;BR /&gt;RequestUri &lt;A href="https://geo.abs.gov.au/arcgis/rest/services/ASGS2021/SA4/MapServer/0/query" target="_blank"&gt;https://geo.abs.gov.au/arcgis/rest/services/ASGS2021/SA4/MapServer/0/query&lt;/A&gt;&lt;BR /&gt;Method POST&lt;BR /&gt;Headers User-Agent: ArcGISRuntime-NET/100.15 (Windows 10.0.19044; Win64; .NET6.0.9; devmode)&lt;BR /&gt;Referer: &lt;A href="http://arcgis.com/" target="_blank"&gt;http://arcgis.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Content Esri.ArcGISRuntime.Internal.FormUrlEncodedContentInternal&lt;/P&gt;&lt;P&gt;Response -------------------------------------------------------&lt;BR /&gt;StatusCode Forbidden&lt;BR /&gt;Headers Connection: close&lt;BR /&gt;x-amz-server-side-encryption: AES256&lt;BR /&gt;x-amz-version-id: I0lDqCgoP.EIelhfhEuNnZJ8_KSrgDgD&lt;BR /&gt;Accept-Ranges: bytes&lt;BR /&gt;Server: AmazonS3&lt;BR /&gt;Date: Mon, 10 Oct 2022 23:39:16 GMT&lt;BR /&gt;ETag: "4963e19fd3d3ca2d1ce8666a11085544"&lt;BR /&gt;X-Cache: Error from cloudfront&lt;BR /&gt;Via: 1.1 1147e5ecd1f71df7e8584b06e2b9be6e.cloudfront.net (CloudFront)&lt;BR /&gt;X-Amz-Cf-Pop: MEL50-C2&lt;BR /&gt;X-Amz-Cf-Id: 4vWyHXEzyVP-6JcMgV_mN81Al3UepR3w0zMVKL2TxBRaE8Srr0IGNA==&lt;/P&gt;&lt;P&gt;Content System.Net.Http.HttpConnectionResponseContent&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 23:51:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/servicefeaturetable-query-with-large-geometry/m-p/1220528#M11422</guid>
      <dc:creator>MarcHillman</dc:creator>
      <dc:date>2022-10-10T23:51:40Z</dc:date>
    </item>
  </channel>
</rss>

