<?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: Use HTTP Proxy - Is there a way to automatically turn on/off to use proxy? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Use-HTTP-Proxy-Is-there-a-way-to-automatically-turn-on-off-to/m-p/2339058#M107239</link>
    <description>&lt;P&gt;Hi, yes you can via the dynamic settings view in the component. &lt;/P&gt;</description>
    <pubDate>Wed, 21 Apr 2021 21:37:22 GMT</pubDate>
    <dc:creator>gjeremy1617088143</dc:creator>
    <dc:date>2021-04-21T21:37:22Z</dc:date>
    <item>
      <title>Use HTTP Proxy - Is there a way to automatically turn on/off to use proxy?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-HTTP-Proxy-Is-there-a-way-to-automatically-turn-on-off-to/m-p/2339057#M107238</link>
      <description>&lt;P&gt;Hello all, I am using component tRestClient and turn off proxy (in Advanced Settings - uncheck use HTTP proxy) to run the job on my local computer, however, when I need to remote execute job on TAC server I need to turn on proxy.  Is there a way to code or program this setting automatically using context variables?  &lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 17:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-HTTP-Proxy-Is-there-a-way-to-automatically-turn-on-off-to/m-p/2339057#M107238</guid>
      <dc:creator>Edith1</dc:creator>
      <dc:date>2021-04-21T17:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Use HTTP Proxy - Is there a way to automatically turn on/off to use proxy?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-HTTP-Proxy-Is-there-a-way-to-automatically-turn-on-off-to/m-p/2339058#M107239</link>
      <description>&lt;P&gt;Hi, yes you can via the dynamic settings view in the component. &lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 21:37:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-HTTP-Proxy-Is-there-a-way-to-automatically-turn-on-off-to/m-p/2339058#M107239</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-04-21T21:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Use HTTP Proxy - Is there a way to automatically turn on/off to use proxy?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-HTTP-Proxy-Is-there-a-way-to-automatically-turn-on-off-to/m-p/2339059#M107240</link>
      <description>&lt;P&gt;&lt;A href="https://help.talend.com/r/mN51eDX~YKDNvIYUXAJtng/klovhJuukGBtSL8kmChudA" alt="https://help.talend.com/r/mN51eDX~YKDNvIYUXAJtng/klovhJuukGBtSL8kmChudA" target="_blank"&gt;https://help.talend.com/r/mN51eDX~YKDNvIYUXAJtng/klovhJuukGBtSL8kmChudA&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 21:41:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-HTTP-Proxy-Is-there-a-way-to-automatically-turn-on-off-to/m-p/2339059#M107240</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-04-21T21:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Use HTTP Proxy - Is there a way to automatically turn on/off to use proxy?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-HTTP-Proxy-Is-there-a-way-to-automatically-turn-on-off-to/m-p/2339060#M107241</link>
      <description>&lt;P&gt;Thanks for the feedback @guenneguez jeremy​. &lt;/P&gt;&lt;P&gt;I cannot get the dynamic setting to work though. I attached a screenshot of a simple job with the trestclient set up. The context.UseProxy is a boolean variable. What am I missing? When the UseProxy is true, will it use the host, port and username info listed on the advance settings? In advanced setting, the "use HTTP Proxy" is highlighted yellow. I did add the host and port.  &lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 21:10:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-HTTP-Proxy-Is-there-a-way-to-automatically-turn-on-off-to/m-p/2339060#M107241</guid>
      <dc:creator>Edith1</dc:creator>
      <dc:date>2021-04-22T21:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Use HTTP Proxy - Is there a way to automatically turn on/off to use proxy?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-HTTP-Proxy-Is-there-a-way-to-automatically-turn-on-off-to/m-p/2339061#M107242</link>
      <description>&lt;P&gt;Hello you did it right, when the variable is true it use all informations you enter , if it's not it dont use proxy.&lt;/P&gt;&lt;P&gt;The "use HTTP Proxy" is highlighted yellow because now it's dynamic and is your variable wich control it.&lt;/P&gt;&lt;P&gt;Send Me love and Kudos&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 07:11:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-HTTP-Proxy-Is-there-a-way-to-automatically-turn-on-off-to/m-p/2339061#M107242</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-04-23T07:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Use HTTP Proxy - Is there a way to automatically turn on/off to use proxy?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-HTTP-Proxy-Is-there-a-way-to-automatically-turn-on-off-to/m-p/2339062#M107243</link>
      <description>&lt;P&gt;Thanks @guenneguez jeremy​&amp;nbsp; for the response &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;. The dynamic settings for trestclient on studio version 7.3 does not work. Oh well, I'm hoping Taland can fix this in the future.   &lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 21:44:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-HTTP-Proxy-Is-there-a-way-to-automatically-turn-on-off-to/m-p/2339062#M107243</guid>
      <dc:creator>Edith1</dc:creator>
      <dc:date>2021-04-29T21:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Use HTTP Proxy - Is there a way to automatically turn on/off to use proxy?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-HTTP-Proxy-Is-there-a-way-to-automatically-turn-on-off-to/m-p/2339063#M107244</link>
      <description>&lt;P&gt;maybe I have a solution by code injection in the component :&lt;/P&gt;&lt;P&gt;so first create a context variable proxy with the boolean value.&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;in TRestClient advanced settings :&lt;/P&gt;&lt;P&gt;Connection timeout (seconds) value : 30 * 1000L));/*&lt;/P&gt;&lt;P&gt;Receive timeout (seconds) value : 60 * 1000L));boolean use_proxy_tRESTClient_1 = context.proxy;//&lt;/P&gt;&lt;P&gt;proxy password value : ""*/if (use_proxy_tRESTClient_1) {final String decryptedPassword_tRESTClient_1 = "your password here"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you look the code generated in the code view, those injections will comment a part of the trestclient code and write a new one with your boolean as triggering value for use proxy.&lt;/P&gt;&lt;P&gt;Send me love and Kudos&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Eb8kPAAR.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152474i0CAE23AE58DD654D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Eb8kPAAR.jpg" alt="0695b00000Eb8kPAAR.jpg" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 07:27:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-HTTP-Proxy-Is-there-a-way-to-automatically-turn-on-off-to/m-p/2339063#M107244</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-04-30T07:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Use HTTP Proxy - Is there a way to automatically turn on/off to use proxy?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-HTTP-Proxy-Is-there-a-way-to-automatically-turn-on-off-to/m-p/2339064#M107245</link>
      <description>&lt;P&gt;Hi if my answer is ok could you select it as the best please&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 07:25:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-HTTP-Proxy-Is-there-a-way-to-automatically-turn-on-off-to/m-p/2339064#M107245</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-05-07T07:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Use HTTP Proxy - Is there a way to automatically turn on/off to use proxy?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-HTTP-Proxy-Is-there-a-way-to-automatically-turn-on-off-to/m-p/2339065#M107246</link>
      <description>&lt;P&gt;That's exactly what I did before.  It seems like the context Boolean variable for the dynamic setting is not being recognized. When I manually change the dynamic setting from false to true, it works fine. However, when its pointing to the context variable, it doesn't work. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the code for the job: &lt;/P&gt;&lt;P&gt;if (!inOSGi) {&lt;/P&gt;&lt;P&gt;						conduit_tRESTClient_1.getClient().setReceiveTimeout((long) (60 * 1000L));&lt;/P&gt;&lt;P&gt;						conduit_tRESTClient_1.getClient().setConnectionTimeout((long) (30 * 1000L));&lt;/P&gt;&lt;P&gt;						boolean use_proxy_tRESTClient_1 = context.UseProxy;&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;Here's the error I get when the context variable is TRUE ( I'm printing to console the context variable to ensure it's turning on or off). &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Starting job TestAPI_ProxyOnOff at 09:24 07/05/2021.&lt;/P&gt;&lt;P&gt;[statistics] connecting to socket on port  &lt;/P&gt;&lt;P&gt;[statistics] connected&lt;/P&gt;&lt;P&gt;********** Iteration: 1 Seconds2Wait: 0 **********&amp;nbsp;&lt;/P&gt;&lt;P&gt;********** Completed Job - UseProxy_Context Value: true **********&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[statistics] disconnected&lt;/P&gt;&lt;P&gt;May 07, 2021 9:24:50 AM org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging&lt;/P&gt;&lt;P&gt;WARNING: Interceptor for {https://xxxx/xxxxx}tRESTClient has thrown exception, unwinding now&lt;/P&gt;&lt;P&gt;org.apache.cxf.interceptor.Fault: Could not receive Message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;**So technically the Dynamic setting works if you manually change the value; however it doesn't work if you automate the value to use the context Boolean variable. **&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 16:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-HTTP-Proxy-Is-there-a-way-to-automatically-turn-on-off-to/m-p/2339065#M107246</guid>
      <dc:creator>Edith1</dc:creator>
      <dc:date>2021-05-07T16:33:23Z</dc:date>
    </item>
  </channel>
</rss>

