<?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 to access ExportData URL via Qlik Engine API in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-access-ExportData-URL-via-Qlik-Engine-API/m-p/2134351#M19402</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Simply you can generate a ticket via python or bat file using CRUL &amp;amp; get that file downloaded.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Nov 2023 07:38:39 GMT</pubDate>
    <dc:creator>ajaykakkar93</dc:creator>
    <dc:date>2023-11-03T07:38:39Z</dc:date>
    <item>
      <title>How to access ExportData URL via Qlik Engine API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-access-ExportData-URL-via-Qlik-Engine-API/m-p/2134214#M19400</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I have the following issue:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I wrote a python script to connect to the Qlik engine API via websocket to gather information about the content of a table and export it. The whole script is working and as a result I receive a qURL that I append to my server URL and get the final URL. After adding this URL into the browser, the browser is downloading the file. So far, so good.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Expected Outcome&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I would like my script to access this URL and download the CSV file locally. But so far none of my attempts worked. Whenever I tried using the request module, a timeout was presented to me without any file.&lt;/P&gt;
&lt;P&gt;Reading in another post, I learned one&amp;nbsp;&lt;SPAN&gt;can't download that file through a websocket. You need to do an HTTP GET to download it. But for the HTTP GET you also need to send the session cookie of the websocket session.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;So how can I catch the cookie from the header response of the websocket session? I checked&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;websocket.enableTrace(True) and was able to see the cookie put can't save it to a variable this way.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;And even after getting the cookie, where should I send my GET request to, to access the file from the download?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Does anyone have a solid solution here? I just need the content of the file but I'm out of ideas and found only snippets to various attempts without solving this riddle.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 16:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-access-ExportData-URL-via-Qlik-Engine-API/m-p/2134214#M19400</guid>
      <dc:creator>arkham</dc:creator>
      <dc:date>2023-11-02T16:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to access ExportData URL via Qlik Engine API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-access-ExportData-URL-via-Qlik-Engine-API/m-p/2134351#M19402</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Simply you can generate a ticket via python or bat file using CRUL &amp;amp; get that file downloaded.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 07:38:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-access-ExportData-URL-via-Qlik-Engine-API/m-p/2134351#M19402</guid>
      <dc:creator>ajaykakkar93</dc:creator>
      <dc:date>2023-11-03T07:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to access ExportData URL via Qlik Engine API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-access-ExportData-URL-via-Qlik-Engine-API/m-p/2134393#M19405</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thanks for your reply. Which Qlik API do I need to use here? I never worked with tickets in Qlik before&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 09:10:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-access-ExportData-URL-via-Qlik-Engine-API/m-p/2134393#M19405</guid>
      <dc:creator>arkham</dc:creator>
      <dc:date>2023-11-03T09:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to access ExportData URL via Qlik Engine API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-access-ExportData-URL-via-Qlik-Engine-API/m-p/2134403#M19406</link>
      <description>&lt;P&gt;API is called as QRS API which generates a session ticket for a user.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 09:23:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-access-ExportData-URL-via-Qlik-Engine-API/m-p/2134403#M19406</guid>
      <dc:creator>ajaykakkar93</dc:creator>
      <dc:date>2023-11-03T09:23:06Z</dc:date>
    </item>
  </channel>
</rss>

