Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
stecava82
Partner - Contributor III
Partner - Contributor III

Qlik Engine API and exported file

Hi all,

I'm using the Engine Api, with websocket and the jwt authentication.

When I use the ExportData method on an object, I get the url of the exported file, but when I try to get this file through the "code"it returns the login page. If I try with the browser I can download the file.

Can I download the file through the websocket session, that is authenticated? Or another solution?

Thank You

S.

1 Solution

Accepted Solutions
Øystein_Kolsrud
Employee
Employee

To do that, you'll need to pass the session token of the websocket as a cookie in your http request. Are you using .Net? In that case I can show you how to do it. In fact, there is another thread on that topic here:Using a Session Cookie with Repository API

If you're in the javascript world, then others are better suited to help you...

View solution in original post

4 Replies
Øystein_Kolsrud
Employee
Employee

Unfortunately, you can't download that file through a websocket. You need to do an HTTP GET to download it.

stecava82
Partner - Contributor III
Partner - Contributor III
Author

Hi Øystein,

thank you for your answer.

But, I need to renew the auth to the https endpoint, or I can pass the session of the websocket

Thanks

Øystein_Kolsrud
Employee
Employee

To do that, you'll need to pass the session token of the websocket as a cookie in your http request. Are you using .Net? In that case I can show you how to do it. In fact, there is another thread on that topic here:Using a Session Cookie with Repository API

If you're in the javascript world, then others are better suited to help you...

stecava82
Partner - Contributor III
Partner - Contributor III
Author

Thank you for the hint

At the moment I'm working on a prototype with Python, but I take a look at the .net solution.