<?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: How can I get the response status code from a QueryTask? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-response-status-code-from-a/m-p/709967#M66022</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I found the status code inside esriRequest only, not in a QueryTask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code can be checked here: request.ioArgs.xhr.status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var request = esriRequest(...);&lt;/P&gt;&lt;P&gt;request.then( function(response) { /* request.ioArgs.xhr.status */ } );&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2016 22:27:36 GMT</pubDate>
    <dc:creator>WalterMínchez</dc:creator>
    <dc:date>2016-07-27T22:27:36Z</dc:date>
    <item>
      <title>How can I get the response status code from a QueryTask?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-response-status-code-from-a/m-p/709964#M66019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way to have access to the response status and headers from a QueryTask or esriRequest?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 21:36:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-response-status-code-from-a/m-p/709964#M66019</guid>
      <dc:creator>WalterMínchez</dc:creator>
      <dc:date>2016-07-12T21:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the response status code from a QueryTask?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-response-status-code-from-a/m-p/709965#M66020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just curious, are you needing to add custom headers? If so, check out &lt;A href="https://community.esri.com/thread/170892"&gt;Insert custom http header into request &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, are you just needing to inspect for debugging? If that's the case, I'd check out Fiddler - &lt;A href="http://www.telerik.com/fiddler" title="http://www.telerik.com/fiddler"&gt;Fiddler free web debugging proxy&amp;nbsp; &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll want to make sure you set-up https decryption under options to capture secured traffic, but the Fiddler inspectors will give all of this information - headers and response result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're not looking for either of these, could you provide just a bit more info on what you're hoping to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 04:09:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-response-status-code-from-a/m-p/709965#M66020</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2016-07-13T04:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the response status code from a QueryTask?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-response-status-code-from-a/m-p/709966#M66021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, is neither of those. What I would like to know if the status code to check if it is 304, not modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Fiddler I checked that AGS does return this on the QueryTask but in Javascript I cannot see it.&lt;/P&gt;&lt;P&gt;I will use this to update graphics layers and combo boxes only when there is new data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 19:34:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-response-status-code-from-a/m-p/709966#M66021</guid>
      <dc:creator>WalterMínchez</dc:creator>
      <dc:date>2016-07-13T19:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the response status code from a QueryTask?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-response-status-code-from-a/m-p/709967#M66022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I found the status code inside esriRequest only, not in a QueryTask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code can be checked here: request.ioArgs.xhr.status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var request = esriRequest(...);&lt;/P&gt;&lt;P&gt;request.then( function(response) { /* request.ioArgs.xhr.status */ } );&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 22:27:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-i-get-the-response-status-code-from-a/m-p/709967#M66022</guid>
      <dc:creator>WalterMínchez</dc:creator>
      <dc:date>2016-07-27T22:27:36Z</dc:date>
    </item>
  </channel>
</rss>

