<?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: esri js api post for exportMap in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359812#M33366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Nicolas,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; I guess at this point you should open an esri tech support ticket then.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Apr 2017 13:44:26 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2017-04-24T13:44:26Z</dc:date>
    <item>
      <title>esri js api post for exportMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359804#M33358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an arcgis ArcGISDynamicMapServiceLayer with quite a big number of "layerDefinitions" applied with the "setLayerDefinitions" method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that the GET export REST function of ArcGIS Server 10.4.1 (with webadaptor on IIS) does not work as the request is too big so a POST would be necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is stated in the &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/arcgisdynamicmapservicelayer-amd.html#setlayerdefinitions" rel="nofollow noopener noreferrer" target="_blank"&gt;documentation&lt;/A&gt; that "&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;If the layer definition expression is longer than approximately 2000 characters you will need to set up a &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jshelp/ags_proxy.html" style="color: #00629b; text-decoration: none;" rel="nofollow noopener noreferrer" target="_blank"&gt;proxy page&lt;/A&gt;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;.".&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;I configured the ESRI proxy GitHub project on my server and configured JS api (3.20) to always use the proxy:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="" style="color: #595959;"&gt;esriConfig&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;defaults&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;io&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;proxyUrl &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #dd1144;"&gt;"&amp;lt;url_to_proxy&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;
esriConfig&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;defaults&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;io&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt;alwaysUseProxy &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; font-weight: bold;"&gt;true&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;The problem is that requests are still sent as GET operation so it does not work as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How am I supposed to tell JS API to POST for export map operation either directly to the REST api or to the proxy ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:47:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359804#M33358</guid>
      <dc:creator>NicolasGIS</dc:creator>
      <dc:date>2021-12-11T16:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: esri js api post for exportMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359805#M33359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Really nobody for this ? Thought it was a relevant question as the problem can quickly occurs if using parameters such as "Dynamic Layers" with big services.&lt;/P&gt;&lt;P&gt;Have I missed anything ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any hint on the way to go would be great.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 09:30:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359805#M33359</guid>
      <dc:creator>NicolasGIS</dc:creator>
      <dc:date>2017-04-20T09:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: esri js api post for exportMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359806#M33360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nicolas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You will want to look at this link for adding proxy rules:&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/3/jsapi/esri.urlutils-amd.html#addproxyrule" title="https://developers.arcgis.com/javascript/3/jsapi/esri.urlutils-amd.html#addproxyrule"&gt;https://developers.arcgis.com/javascript/3/jsapi/esri.urlutils-amd.html#addproxyrule&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 14:01:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359806#M33360</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-04-20T14:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: esri js api post for exportMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359807#M33361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I did have a look at your link before posting here and it did not solve my problem. Indeed, I added a rule as you suggested :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;esri.addProxyRule({&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; urlPrefix: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fhostname%2Farcgis%2Frest%2Fservices%2FMyServiceWithLong" rel="nofollow" target="_blank"&gt;https://hostname/arcgis/rest/services/MyServiceWithLong&lt;/A&gt;&lt;SPAN style="background-color: #ffffff;"&gt;layerDefinitions&lt;/SPAN&gt;/MapServer/export",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; proxyUrl: '/proxy.ashx'&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And indeed, it works, my request is sent to the proxy but still with GET method, so it still get a 404 error.&lt;/P&gt;&lt;P&gt;I am reading everywhere that proxy should help to POST instead of GET but isn't suppose to POST by itself according to the size of the request ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Apr 2017 16:56:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359807#M33361</guid>
      <dc:creator>NicolasGIS</dc:creator>
      <dc:date>2017-04-23T16:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: esri js api post for exportMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359808#M33362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;So you are saying that you see the request going through the proxy for the exportmap request but it is just not switching to POST?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Apr 2017 18:47:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359808#M33362</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-04-23T18:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: esri js api post for exportMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359809#M33363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly ! And I tried with several versions of ESRI javascript API (3.16,3.17,3.18,3.19,3.20) with the same results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Apr 2017 19:00:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359809#M33363</guid>
      <dc:creator>NicolasGIS</dc:creator>
      <dc:date>2017-04-23T19:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: esri js api post for exportMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359810#M33364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nicholas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;So you app is using the https protocol right? And you are using the latest version of the proxy 1.1.0 or&amp;nbsp;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;1.1.1-beta?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;I tend to make my proxy rules a little less explicit:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;esri.addProxyRule({&lt;/SPAN&gt;&lt;BR style="color: #3d3d3d;" /&gt;&lt;SPAN style="color: #3d3d3d; border: 0px; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; urlPrefix: "&lt;/SPAN&gt;&lt;A class="unlinked"&gt;&lt;SPAN style="color: #24292e;"&gt;https://hostname/arcgis/rest/services&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="color: #3d3d3d;"&gt;",&lt;/SPAN&gt;&lt;BR style="color: #3d3d3d;" /&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; proxyUrl: '/proxy.ashx'&lt;/SPAN&gt;&lt;BR style="color: #3d3d3d;" /&gt;&lt;SPAN style="color: #3d3d3d;"&gt;});&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Apr 2017 19:51:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359810#M33364</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-04-23T19:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: esri js api post for exportMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359811#M33365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your time Robert !&lt;/P&gt;&lt;P&gt;Yes, https is used.&lt;/P&gt;&lt;P&gt;I restricted the url but it did not change anything (at the beginning, in order to be sure, I configured all requests to be proxied:&lt;/P&gt;&lt;PRE class="" style="background: #fafafa; border: 2px solid #dddddd; padding: 0.5em 0px 0.5em 0.5em;"&gt;&lt;SPAN class="" style="color: #595959; border: 0px; font-weight: inherit;"&gt;esriConfig&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959; border: 0px; font-weight: inherit;"&gt;defaults&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959; border: 0px; font-weight: inherit;"&gt;io&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959; border: 0px; font-weight: inherit;"&gt;alwaysUseProxy &lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600; border: 0px; font-weight: inherit;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #595959; border: 0px; font-weight: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #333333; border: 0px; font-weight: bold;"&gt;true&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666600; border: 0px; font-weight: inherit;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;I am using latest esri Github .NET proxy 1.1.1 beta but isn't it more about javascript here ? The request does not reach the proxy unfortunately because of the use of GET method.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Apr 2017 20:41:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359811#M33365</guid>
      <dc:creator>NicolasGIS</dc:creator>
      <dc:date>2017-04-23T20:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: esri js api post for exportMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359812#M33366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Nicolas,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; I guess at this point you should open an esri tech support ticket then.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2017 13:44:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359812#M33366</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-04-24T13:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: esri js api post for exportMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359813#M33367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert. I was hoping to get a reply from ESRI directly here but I guess I will open a ticket then...&lt;/P&gt;&lt;P&gt;Honestly I am surprised to be the first one asking : I was sure I missed something !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Apr 2017 14:28:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359813#M33367</guid>
      <dc:creator>NicolasGIS</dc:creator>
      <dc:date>2017-04-24T14:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: esri js api post for exportMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359814#M33368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicolas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you ever find a solution to this&amp;nbsp;issue? &amp;nbsp;I'm experiencing the same problem and also just being directed to use the proxy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Aug 2017 00:15:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359814#M33368</guid>
      <dc:creator>ForrestCain1</dc:creator>
      <dc:date>2017-08-15T00:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: esri js api post for exportMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359815#M33369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Forrest,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately not.&lt;/P&gt;&lt;P&gt;I would love an ESRI opinion on this issue but I finally ended up splitting my service so as to make it&amp;nbsp;work ... It does not follow ESRI best practice to have one big service instead of several...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicolas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Aug 2017 06:19:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359815#M33369</guid>
      <dc:creator>NicolasGIS</dc:creator>
      <dc:date>2017-08-15T06:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: esri js api post for exportMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359816#M33370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;esriConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;defaults&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;io&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;postLength &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Nicolas, I found that setting the postLength to 1 (or any number smaller than your url) will force a post for all layers and tasks without using the proxy. &amp;nbsp;I don't see this documented anywhere but I do see in the api source code its checking this to determine to make a post. &amp;nbsp;When this happens, your request to the server comes back as some json with a url to an image. &amp;nbsp;The api automatically does another request to get this image and add it to the map (sorta like print task). &amp;nbsp;If you are using https, another problem occurs because the url you get back from the first request is in http (so you'll get mixed content warnings or errors). &amp;nbsp;I had to create a custom&amp;nbsp;ArcGISDynamicMapServiceLayer using the createSubclass method and alter the getImageUrl function to swap it out to https. &amp;nbsp;I don't love it but its better than not working...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a ticket open with ESRI but so far they are just telling me to use the proxy... &amp;nbsp;I'm also really surprised more folks aren't having the same problem. &amp;nbsp;Maybe large layer defs and using https aren't&amp;nbsp;an issue for most folks?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 13:59:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359816#M33370</guid>
      <dc:creator>ForrestCain1</dc:creator>
      <dc:date>2017-08-16T13:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: esri js api post for exportMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359817#M33371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks Forrest for the follow up. It is very interesting.&lt;/P&gt;&lt;P&gt;I am just like you very surprised that there is no others use cases (now we are 2 !).&lt;/P&gt;&lt;P&gt;Please let me know the outcome of your ticket ! I can't wait to read it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 14:25:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359817#M33371</guid>
      <dc:creator>NicolasGIS</dc:creator>
      <dc:date>2017-08-16T14:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: esri js api post for exportMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359818#M33372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Forrest,&lt;/P&gt;&lt;P&gt;Juste wondering if you had had any news from ESRI ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 09:35:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-js-api-post-for-exportmap/m-p/359818#M33372</guid>
      <dc:creator>NicolasGIS</dc:creator>
      <dc:date>2017-09-25T09:35:22Z</dc:date>
    </item>
  </channel>
</rss>

