<?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: how to valid if an URL is active in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/how-to-valid-if-an-URL-is-active/m-p/2315624#M86261</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;You can try tHttpRequest component, link it to a tJavaRow and check the ResponseContent value, if it is null, means the URL is inactive.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;tHttpRequest--main--tJavaRow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Uncheck the 'die on error' option on tHttpRequest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on tJavaRow:&lt;/P&gt;&lt;P&gt;if(input_row.ResponseContent==null){&lt;/P&gt;&lt;P&gt;System.out.println("the URL is inactive");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
    <pubDate>Sat, 26 Dec 2020 10:15:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-12-26T10:15:42Z</dc:date>
    <item>
      <title>how to valid if an URL is active</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-valid-if-an-URL-is-active/m-p/2315623#M86260</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know what components or logic that I use to check if an URL is active and up and running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if I type "https://community.talend.com" on a browser, I get to see the content if the url is up and running.  otherwise, i find an error (not found or not valid).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried DI trestclient which returned the body was not found.  I do not need to retrieve any body.  I just need to check if the url is active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help will be appreciated.&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;Venky&lt;/P&gt;</description>
      <pubDate>Fri, 25 Dec 2020 18:13:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-valid-if-an-URL-is-active/m-p/2315623#M86260</guid>
      <dc:creator>VenkyM</dc:creator>
      <dc:date>2020-12-25T18:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to valid if an URL is active</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-valid-if-an-URL-is-active/m-p/2315624#M86261</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;You can try tHttpRequest component, link it to a tJavaRow and check the ResponseContent value, if it is null, means the URL is inactive.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;tHttpRequest--main--tJavaRow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Uncheck the 'die on error' option on tHttpRequest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on tJavaRow:&lt;/P&gt;&lt;P&gt;if(input_row.ResponseContent==null){&lt;/P&gt;&lt;P&gt;System.out.println("the URL is inactive");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Sat, 26 Dec 2020 10:15:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-valid-if-an-URL-is-active/m-p/2315624#M86261</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-26T10:15:42Z</dc:date>
    </item>
  </channel>
</rss>

