<?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: A call to PrintTask in ArcGIS Server 10.1 does not use POST in IE browser in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/a-call-to-printtask-in-arcgis-server-10-1-does-not/m-p/51185#M1854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IE strictly follows the URL length of 2048 characters. if you have a request which is longer than 2048 you need to use POST method, for which you need proxyurl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is your client's security concern about using proxy page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can't convince your client to use proxy page and still want to use IE, then you may have to build a post request something like below (&lt;STRONG&gt;NOT RECOMMENDED&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also move this discussion to &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;A _jive_internal="true" class="jivecontainerTT-hover-container" data-objectid="2128" data-objecttype="14" href="https://community.esri.com/community/developers/web-developers/arcgis-api-for-javascript" style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #287433;"&gt;ArcGIS API for JavaScript&lt;/A&gt; for better help&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/3592_Untitled.png" style="width: 620px; height: 335px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Don't know how chrome is toggling between get and post request, if you find out how do post back.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Aug 2014 15:13:29 GMT</pubDate>
    <dc:creator>RiyasDeen</dc:creator>
    <dc:date>2014-08-18T15:13:29Z</dc:date>
    <item>
      <title>A call to PrintTask in ArcGIS Server 10.1 does not use POST in IE browser</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/a-call-to-printtask-in-arcgis-server-10-1-does-not/m-p/51184#M1853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: left;"&gt;Hi,&lt;/P&gt;&lt;P style="text-align: left;"&gt;One&lt;BR /&gt;of our clients is trying to use a PrintTask that is hosted in one of our&lt;BR /&gt;servers (ArcGIS Server 10.1). The printed map can contain few graphic elements.&lt;BR /&gt;That's why the call to the task supposed to be done automatically by POST and not GET.&amp;nbsp; It works well in Chrome,&lt;BR /&gt;Mozilla, IE10 and up. Unfortunately it does not work in IE (specially IE8 and IE9).&lt;/P&gt;&lt;P style="text-align: left;"&gt;The only way to do it is using a Proxy that forces the request to be sent by POST but the client does not allow a proxy on his server from &lt;SPAN style="color: black; line-height: 115%; font-family: 'Verdana','sans-serif'; font-size: 10pt;"&gt;Information&lt;BR /&gt;Security reasons.&lt;/SPAN&gt; When we put a Proxy in one of our servers, the end user must set the option of "Access data sources across domains"&lt;BR /&gt;under Security Tab to enable or prompt (if it is disabled, it does not work) and this is not acceptable.&lt;/P&gt;&lt;P style="text-align: left;"&gt;My questions are:&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;Why in IE it does not send it by POST (it does not send it at all in case of more than one-two graphics)&lt;/LI&gt;&lt;LI&gt;If we'll install ArcGIS&lt;BR /&gt;Server 10.2.2 instead of the existed version of ArcGIS Server 10.1, will the PrintTask work as expected also for IE ?&lt;/LI&gt;&lt;LI&gt;What else can we try? As I mentioned, Proxy is not an option.&lt;/LI&gt;&lt;/OL&gt;&lt;P style="text-align: left;"&gt;Enclosed with the code, with which you can reproduce the problem. Few Notes:&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;There is a loop in the code&lt;BR /&gt;that displays graphic elements. If it runs with one element, it works OK but with more than one, it gives an error in IE.&lt;/LI&gt;&lt;LI&gt;There are two lines that are now in comment :&lt;/LI&gt;&lt;/OL&gt;&lt;P style="text-align: left; margin-left: 36pt;"&gt;&lt;SPAN&gt;//esriConfig.defaults.io.proxyUrl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://82.166.80.134/PrintMap/proxy.ashx" rel="nofollow" target="_blank"&gt;http://82.166.80.134/PrintMap/proxy.ashx&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left; margin-left: 36pt;"&gt;//esriConfig.defaults.io.alwaysUseProxy = false;&lt;/P&gt;&lt;P style="text-align: left; margin-left: 36pt;"&gt;If you uncomment them, the PrintTask will use proxy but the option of "Access data sources across domains" must be enabled in IE.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; text-align: left; margin-left: 36pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="text-align: left; margin-left: 36pt;"&gt;Thanks a lot,&lt;/P&gt;&lt;P style="text-align: left; margin-left: 36pt;"&gt;Miri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 10:39:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/a-call-to-printtask-in-arcgis-server-10-1-does-not/m-p/51184#M1853</guid>
      <dc:creator>MiriEshel</dc:creator>
      <dc:date>2014-08-18T10:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: A call to PrintTask in ArcGIS Server 10.1 does not use POST in IE browser</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/a-call-to-printtask-in-arcgis-server-10-1-does-not/m-p/51185#M1854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IE strictly follows the URL length of 2048 characters. if you have a request which is longer than 2048 you need to use POST method, for which you need proxyurl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is your client's security concern about using proxy page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can't convince your client to use proxy page and still want to use IE, then you may have to build a post request something like below (&lt;STRONG&gt;NOT RECOMMENDED&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also move this discussion to &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;A _jive_internal="true" class="jivecontainerTT-hover-container" data-objectid="2128" data-objecttype="14" href="https://community.esri.com/community/developers/web-developers/arcgis-api-for-javascript" style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #287433;"&gt;ArcGIS API for JavaScript&lt;/A&gt; for better help&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/3592_Untitled.png" style="width: 620px; height: 335px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Don't know how chrome is toggling between get and post request, if you find out how do post back.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2014 15:13:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/a-call-to-printtask-in-arcgis-server-10-1-does-not/m-p/51185#M1854</guid>
      <dc:creator>RiyasDeen</dc:creator>
      <dc:date>2014-08-18T15:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: A call to PrintTask in ArcGIS Server 10.1 does not use POST in IE browser</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/a-call-to-printtask-in-arcgis-server-10-1-does-not/m-p/51186#M1855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Riyas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply. I would like to be able to build a POST request from the beginning, I just don't know how to do it in the code that calls the printTask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The client insists to prevent using Proxy on his site. He thinks it is a Security breach and in a way,&amp;nbsp; he is right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Miri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Aug 2014 04:54:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/a-call-to-printtask-in-arcgis-server-10-1-does-not/m-p/51186#M1855</guid>
      <dc:creator>MiriEshel</dc:creator>
      <dc:date>2014-08-19T04:54:52Z</dc:date>
    </item>
  </channel>
</rss>

