<?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: Send session cookies along with a Rest API POST call in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Send-session-cookies-along-with-a-Rest-API-POST-call/m-p/2312841#M83751</link>
    <description>Hi &lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Dhruv,&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;Have you already checked component reference with scenarios&amp;nbsp;&lt;A href="https://help.talend.com/search/all?query=tRESTClient&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:tRESTClient&lt;/A&gt;?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
    <pubDate>Mon, 06 Jul 2015 08:02:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-07-06T08:02:49Z</dc:date>
    <item>
      <title>Send session cookies along with a Rest API POST call</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-session-cookies-along-with-a-Rest-API-POST-call/m-p/2312840#M83750</link>
      <description>Hi,
&lt;BR /&gt;I need to make a call to a Rest API which needs a cookie to be sent along with the header parameters. I was able to get the cookie using the tFileFetch component, but I am unable to set the cookies and make the second call to the ResT API. I need to send a Json object as an input parameter to the call.
&lt;BR /&gt;I read on the couple of forums that i can set the cookies as header parameter in the advanced settings tab of a tRestClient, but I was not successful with it (may be I did not do it the right way).
&lt;BR /&gt;Any help would be highly appreciated.
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Dhruv</description>
      <pubDate>Thu, 25 Jun 2015 21:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-session-cookies-along-with-a-Rest-API-POST-call/m-p/2312840#M83750</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-25T21:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Send session cookies along with a Rest API POST call</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-session-cookies-along-with-a-Rest-API-POST-call/m-p/2312841#M83751</link>
      <description>Hi &lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Dhruv,&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;Have you already checked component reference with scenarios&amp;nbsp;&lt;A href="https://help.talend.com/search/all?query=tRESTClient&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:tRESTClient&lt;/A&gt;?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Mon, 06 Jul 2015 08:02:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-session-cookies-along-with-a-Rest-API-POST-call/m-p/2312841#M83751</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-06T08:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Send session cookies along with a Rest API POST call</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-session-cookies-along-with-a-Rest-API-POST-call/m-p/2312842#M83752</link>
      <description>Hi Sabrina,
&lt;BR /&gt;Yes, I did check the component reference guide but I couldn't find a solution to my problem. I know we can pass cookies as header parameters from the Advanced Setting tab but the component does not allow me to read the cookies which tFileFetch component created, right or I am missing something here. I used a work worked around for this, I made the first Rest call using a Java class in the routines and extracted the cookies it saved. I then used the cookie values and passed them as header parameters in the tRestClient call. If there is a better way to do this?
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Dhruv</description>
      <pubDate>Mon, 06 Jul 2015 14:24:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-session-cookies-along-with-a-Rest-API-POST-call/m-p/2312842#M83752</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-06T14:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Send session cookies along with a Rest API POST call</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-session-cookies-along-with-a-Rest-API-POST-call/m-p/2312843#M83753</link>
      <description>&lt;P&gt;Follow below process. 1) Pass the credential to the string column of the 1st tRestClient (login page). 2) Capture the cookie using "((java.util.Map&amp;gt;)globalMap.get("tRESTClient_1_HEADERS")).get("Set-Cookie").get(1)" 3) In 2nd tRestClient component go to advance properties and add the below header properties. Name Value "Cookies" ((java.util.Map&amp;gt;)globalMap.get("tRESTClient_1_HEADERS")).get("Set-Cookie").get(1) you should be able to connect using above process&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 20:59:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-session-cookies-along-with-a-Rest-API-POST-call/m-p/2312843#M83753</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-07T20:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Send session cookies along with a Rest API POST call</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-session-cookies-along-with-a-Rest-API-POST-call/m-p/2312844#M83754</link>
      <description>&lt;P&gt;Thanks. It helped, just one mistake it is "Cookie" not "Cookies".&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 15:39:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-session-cookies-along-with-a-Rest-API-POST-call/m-p/2312844#M83754</guid>
      <dc:creator>MPande1611660090</dc:creator>
      <dc:date>2021-07-01T15:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Send session cookies along with a Rest API POST call</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-session-cookies-along-with-a-Rest-API-POST-call/m-p/2312845#M83755</link>
      <description>&lt;P&gt;Thanks, in my case y have multiple cookies&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//Get Cookie&lt;/P&gt;&lt;P&gt;//System.out.println(((java.util.Map)globalMap.get("tRESTClient_1_HEADERS")).get("Set-Cookie"));&lt;/P&gt;&lt;P&gt;//System.out.println(((java.util.Map)globalMap.get("tRESTClient_1_HEADERS")).get("Set-Cookie").toString().replace("[","").replace("]","").replace(",",";").replace(";","\n"));&lt;/P&gt;&lt;P&gt;String str[] = ((java.util.Map)globalMap.get("tRESTClient_1_HEADERS")).get("Set-Cookie").toString().replace("[","").replace("]","").replace(",",";").split("; ");&lt;/P&gt;&lt;P&gt;//System.out.println(str.length);&lt;/P&gt;&lt;P&gt;String out = "";&lt;/P&gt;&lt;P&gt;for(int index = 0; index &amp;lt; str.length; index++){&lt;/P&gt;&lt;P&gt;     //System.out.println(str[index]);&lt;/P&gt;&lt;P&gt;     if(str[index].startsWith("ABC") || str[index].startsWith("DEF")){&lt;/P&gt;&lt;P&gt;          out = out + str[index] + ";";&lt;/P&gt;&lt;P&gt;     }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;output_row.cookie = out;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 12:04:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-session-cookies-along-with-a-Rest-API-POST-call/m-p/2312845#M83755</guid>
      <dc:creator>powerchip</dc:creator>
      <dc:date>2022-03-17T12:04:27Z</dc:date>
    </item>
  </channel>
</rss>

