<?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 Retrieve Response Headers From tRestClient in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Retrieve-Response-Headers-From-tRestClient/m-p/2319612#M89837</link>
    <description>&lt;P&gt;Hi all ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using tRestClient to pull data from a REST API which returns data in pages of up to 250 items each. The link to the next page is provided in the response header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i can access the response header using tRestClient using tjavarow : &lt;/P&gt;&lt;P&gt;output_row.url = ((java.util.Map&amp;lt;String,java.util.List&amp;lt;String&amp;gt;&amp;gt;)globalMap.get("tRESTClient_1_HEADERS")).get("Link").get(0).toString();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the link like this : &lt;/P&gt;&lt;P&gt;&amp;lt;http://example.com/TheBook/chapter2&amp;gt;; rel="next"; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i get only the url :  &lt;/P&gt;&lt;P&gt;http://example.com/TheBook/chapter2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help please ! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jan 2021 21:10:32 GMT</pubDate>
    <dc:creator>hiba1</dc:creator>
    <dc:date>2021-01-19T21:10:32Z</dc:date>
    <item>
      <title>Retrieve Response Headers From tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Retrieve-Response-Headers-From-tRestClient/m-p/2319612#M89837</link>
      <description>&lt;P&gt;Hi all ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using tRestClient to pull data from a REST API which returns data in pages of up to 250 items each. The link to the next page is provided in the response header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i can access the response header using tRestClient using tjavarow : &lt;/P&gt;&lt;P&gt;output_row.url = ((java.util.Map&amp;lt;String,java.util.List&amp;lt;String&amp;gt;&amp;gt;)globalMap.get("tRESTClient_1_HEADERS")).get("Link").get(0).toString();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the link like this : &lt;/P&gt;&lt;P&gt;&amp;lt;http://example.com/TheBook/chapter2&amp;gt;; rel="next"; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i get only the url :  &lt;/P&gt;&lt;P&gt;http://example.com/TheBook/chapter2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help please ! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 21:10:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Retrieve-Response-Headers-From-tRestClient/m-p/2319612#M89837</guid>
      <dc:creator>hiba1</dc:creator>
      <dc:date>2021-01-19T21:10:32Z</dc:date>
    </item>
  </channel>
</rss>

