<?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 urlUtils.addProxyRule doesn't permit POST requests in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/urlutils-addproxyrule-doesn-t-permit-post-requests/m-p/156328#M14558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using urlUtils.addProxyRule for a service and I cannot understand why every request is a GET request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the problem is that if I try to use a QueryTask using a large polygon as param, it doesn't send a POST request, but it tries to send a GET request: obviously the length of the URL is more than 2000 chars and it doesn't work (the polygon has a large number of vertexes in its ring).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it seems that using urlUtils.addProxyRule the API doesn't recognize that if the request params are too large, it has to use a POST request and not another GET.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Jan 2014 14:16:41 GMT</pubDate>
    <dc:creator>deleted-user-pYdfRjvSAbTJ</dc:creator>
    <dc:date>2014-01-08T14:16:41Z</dc:date>
    <item>
      <title>urlUtils.addProxyRule doesn't permit POST requests</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/urlutils-addproxyrule-doesn-t-permit-post-requests/m-p/156328#M14558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using urlUtils.addProxyRule for a service and I cannot understand why every request is a GET request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the problem is that if I try to use a QueryTask using a large polygon as param, it doesn't send a POST request, but it tries to send a GET request: obviously the length of the URL is more than 2000 chars and it doesn't work (the polygon has a large number of vertexes in its ring).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it seems that using urlUtils.addProxyRule the API doesn't recognize that if the request params are too large, it has to use a POST request and not another GET.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 14:16:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/urlutils-addproxyrule-doesn-t-permit-post-requests/m-p/156328#M14558</guid>
      <dc:creator>deleted-user-pYdfRjvSAbTJ</dc:creator>
      <dc:date>2014-01-08T14:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: urlUtils.addProxyRule doesn't permit POST requests</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/urlutils-addproxyrule-doesn-t-permit-post-requests/m-p/156329#M14559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i adapted &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jssamples/query_buffer.html" rel="nofollow noopener noreferrer" target="_blank"&gt;this sample&lt;/A&gt;&lt;SPAN&gt; to use urlUtils.addProxyRule() and didn't have any trouble POSTing the circle geometry to query for points.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;//esriConfig.defaults.io.proxyUrl = "/proxy/";&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
urlUtils.addProxyRule({
&amp;nbsp; urlPrefix: "sampleserver1.arcgisonline.com",&amp;nbsp; 
&amp;nbsp; proxyUrl: "/proxy/"
});&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]30410[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;can you provide your own simplified sample demonstrating the problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:17:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/urlutils-addproxyrule-doesn-t-permit-post-requests/m-p/156329#M14559</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2021-12-11T08:17:54Z</dc:date>
    </item>
  </channel>
</rss>

