Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
edwinwitvoet
Contributor III
Contributor III

Set Cookie with REST Custom connection

Hi there,

So we're trying to use the REST Connector to access a 3rd party API, and we need to send a custom cookie to each API request after login.

Obviously we can't do it using the REST Connector interface and we're trying to do it via the script like so:

RestConnectorMasterTable:

SQL SELECT

    ... 

FROM JSON "_response_header" PK "__KEY__response_header"

WITH CONNECTION (   

    URL "https://api_url",

    HTTPHEADER cookie "$(vCookie)"

  )   

;

But the cookie never gets set. Any suggestions on how to do this?

Thanks,

Edwin

2 Replies
petter
Partner - Champion III
Partner - Champion III

An alternative to the Qlik REST Connector is to use "Qlik Web Connectors: General Web Connector":

http://help.qlik.com/en-US/connectors/Subsystems/Web_Connectors_help/Content/Data-Source-Connectors/...

According to the documentation it does support cookies. This connector has to be licensed on a yearly basis though - so it comes with an additional cost as it is a premium connector of the Qlik Web Connector collection not a standard free one.

bc-thebruuu
Creator
Creator

Hy

Did you find a way to do it?