<?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 send POST request via HTTPS in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-send-POST-request-via-HTTPS/m-p/2321063#M91138</link>
    <description>Hi Jcoves
&lt;BR /&gt;Have a try to use 
&lt;A href="https://help.talend.com/search/all?query=tFileFetch&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tFileFetch&lt;/A&gt; component which supports HTTPS connections, you can set authentication in the advanced settings panel of component.
&lt;BR /&gt;Shong</description>
    <pubDate>Mon, 15 Jul 2013 05:01:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-07-15T05:01:47Z</dc:date>
    <item>
      <title>How to send POST request via HTTPS</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-send-POST-request-via-HTTPS/m-p/2321062#M91137</link>
      <description>Hi,
&lt;BR /&gt;I'm trying to access an HTTPS web page which needs some POST parameters in order to download a generated file.
&lt;BR /&gt;HTTPS connection requires authentication, and it throws a certificate warning which can be ignored.
&lt;BR /&gt;I tried using tHttpRequest but it fails on HandShake, so I added tJava component so that it ignores certificate:
&lt;BR /&gt;
&lt;PRE&gt;System.setProperty ("jsse.enableSNIExtension", "false");&lt;BR /&gt;javax.net.ssl.HttpsURLConnection.setDefaultHostnameVerifier(&lt;BR /&gt;    new javax.net.ssl.HostnameVerifier(){&lt;BR /&gt; &lt;BR /&gt;        public boolean verify(String hostname,&lt;BR /&gt;                javax.net.ssl.SSLSession sslSession) {&lt;BR /&gt;            if (hostname.equals("mydomain")) {&lt;BR /&gt;                return true;&lt;BR /&gt;            }&lt;BR /&gt;            return false;&lt;BR /&gt;        }&lt;BR /&gt;    });&lt;/PRE&gt;
&lt;BR /&gt;Even after I ignore certificate I get following error:
&lt;BR /&gt;
&lt;PRE&gt;Exception in component tHttpRequest_1&lt;BR /&gt;javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed&lt;BR /&gt;	at sun.security.ssl.Alerts.getSSLException(Unknown Source)&lt;/PRE&gt;
&lt;BR /&gt;Any ideas about how to stablish proper HTTPS connection?
&lt;BR /&gt;I also read about tWebDavGet but it doesn't fit my needs since it doesn't let you specify POST parameters.
&lt;BR /&gt;Any help will be appreciated!</description>
      <pubDate>Thu, 11 Jul 2013 14:18:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-send-POST-request-via-HTTPS/m-p/2321062#M91137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-11T14:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to send POST request via HTTPS</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-send-POST-request-via-HTTPS/m-p/2321063#M91138</link>
      <description>Hi Jcoves
&lt;BR /&gt;Have a try to use 
&lt;A href="https://help.talend.com/search/all?query=tFileFetch&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tFileFetch&lt;/A&gt; component which supports HTTPS connections, you can set authentication in the advanced settings panel of component.
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 15 Jul 2013 05:01:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-send-POST-request-via-HTTPS/m-p/2321063#M91138</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-15T05:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to send POST request via HTTPS</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-send-POST-request-via-HTTPS/m-p/2321064#M91139</link>
      <description>Hi Shong, 
&lt;BR /&gt;I finally managed to authenticate throuh both tFileFetch and tHttpRequest by passing parameters to the login page. After that I receive an HTML file which claims user is properly authenticated. 
&lt;BR /&gt;Even though i managed to authenticate, when I execute second step (which would be donwloading file) authentication is lost. It seems to me, first component autheticates properly and closes connection, doesn't retain authentication when second component executes. I would need a component which authenticates first and immediately after sends request to download file. 
&lt;BR /&gt;Is there any way to retain HTTPs login (via cookie?) or to execute both operations (authentication + post call to download file) in a single component? 
&lt;BR /&gt;Thanks!</description>
      <pubDate>Mon, 15 Jul 2013 08:57:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-send-POST-request-via-HTTPS/m-p/2321064#M91139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-15T08:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to send POST request via HTTPS</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-send-POST-request-via-HTTPS/m-p/2321065#M91140</link>
      <description>Hi 
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Is there any way to retain HTTPs login (via cookie?) or to execute both operations (authentication + post call to download file) in a single component?&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;How do you set the URI of tFileFetch component? To me, tFileFetch component creates the HTTPS connection and then download the specified file.
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 17 Jul 2013 06:40:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-send-POST-request-via-HTTPS/m-p/2321065#M91140</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-17T06:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to send POST request via HTTPS</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-send-POST-request-via-HTTPS/m-p/2321066#M91141</link>
      <description>Hi Shong,
&lt;BR /&gt;Thanks for your answer. In my case, "needs authentication" check doesn't authenticate properly so I must point at LOGIN form page and send both username and password to sucessfully log in. Therefore, I only can execute one action which is login, trying to download file would be a second step.
&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 17 Jul 2013 07:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-send-POST-request-via-HTTPS/m-p/2321066#M91141</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-17T07:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to send POST request via HTTPS</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-send-POST-request-via-HTTPS/m-p/2321067#M91142</link>
      <description>Hi all,
&lt;BR /&gt;I have the same kind of issue :
&lt;BR /&gt;1. TFileFetch_1 to POST user &amp;amp; password and getting a cookie : OK
&lt;BR /&gt;2. TFileFetch_2 to GET another page in connecting mode with reading the former cookie : OK ... but NOK
&lt;BR /&gt;I have no error so far, but the 2nd page still provides a "You are not connected." message.
&lt;BR /&gt;For the 1st one, when using the form to authenticate, I'm redirect to the index page with the no-connect message. But i checked that the cookie still contains the right SESSION_ID, a valid one.
&lt;BR /&gt;The TFileFetch_1 has redirect option checked.
&lt;BR /&gt;I'm just wondering if the cookie is really sent along the GET HTTP request.
&lt;BR /&gt;TOS 5.2.1
&lt;BR /&gt;Here is the answer-console message (checked option) :
&lt;BR /&gt; connecting to socket on port 4049
&lt;BR /&gt; connected
&lt;BR /&gt;Status Line: HTTP/1.1 200 OK
&lt;BR /&gt;*** Response Header ***
&lt;BR /&gt;Date: Thu, 01 Aug 2013 13:25:20 GMT
&lt;BR /&gt;Server: Apache/2.2.3 (Red Hat)
&lt;BR /&gt;X-Powered-By: PHP/5.2.10
&lt;BR /&gt;Expires: Thu, 19 Nov 1981 08:52:00 GMT
&lt;BR /&gt;Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
&lt;BR /&gt;Pragma: no-cache
&lt;BR /&gt;Vary: Accept-Encoding
&lt;BR /&gt;Content-Type: text/html; charset=UTF-8
&lt;BR /&gt;Transfer-Encoding: chunked
&lt;BR /&gt;Proxy-Connection: Keep-Alive
&lt;BR /&gt;Connection: Keep-Alive
&lt;BR /&gt;Set-Cookie: PHPSESSID=&amp;lt;&amp;lt;xxxxx&amp;gt;&amp;gt;; path=/
&lt;BR /&gt;Status Line: HTTP/1.1 200 OK
&lt;BR /&gt;*** Response Header ***
&lt;BR /&gt;Date: Thu, 01 Aug 2013 13:25:21 GMT
&lt;BR /&gt;Server: Apache/2.2.3 (Red Hat)
&lt;BR /&gt;X-Powered-By: PHP/5.2.10
&lt;BR /&gt;Expires: Thu, 19 Nov 1981 08:52:00 GMT
&lt;BR /&gt;Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
&lt;BR /&gt;Pragma: no-cache
&lt;BR /&gt;Vary: Accept-Encoding
&lt;BR /&gt;Content-Type: text/html; charset=UTF-8
&lt;BR /&gt;Transfer-Encoding: chunked
&lt;BR /&gt;Proxy-Connection: Keep-Alive
&lt;BR /&gt;Connection: Keep-Alive
&lt;BR /&gt; disconnected
&lt;BR /&gt;
&lt;BR /&gt;Thanks for your help and ideas/leads !
&lt;BR /&gt;Benet</description>
      <pubDate>Thu, 01 Aug 2013 14:50:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-send-POST-request-via-HTTPS/m-p/2321067#M91142</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-08-01T14:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to send POST request via HTTPS</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-send-POST-request-via-HTTPS/m-p/2321068#M91143</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hi Shong,&lt;BR /&gt;Thanks for your answer. In my case, "needs authentication" check doesn't authenticate properly so I must point at LOGIN form page and send both username and password to sucessfully log in. Therefore, I only can execute one action which is login, trying to download file would be a second step.&lt;BR /&gt;Thanks&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;In the first tFileFetch, check the 'save cookie' option and input a file path to save the cookie, and check the 'read cookie' on the second tFileFetch component that will download file.
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 01 Aug 2013 15:13:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-send-POST-request-via-HTTPS/m-p/2321068#M91143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-08-01T15:13:31Z</dc:date>
    </item>
  </channel>
</rss>

