1 Reply Latest reply: Nov 22, 2017 3:19 AM by Petter Skjolden RSS

    Set Cookie with REST Custom connection

    Edwin Witvoet

      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