<?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 make Post request using tRestrequest component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-Post-request-using-tRestrequest-component/m-p/2352828#M119145</link>
    <description>&lt;P&gt;Hi Jan&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for the response.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Actually my API response with HTTPS only and it gives proper response when I test with Postman. But when I do with HTTPS in trestrequest it shows error&amp;nbsp;like this&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;"Caused by: java.lang.RuntimeException: Protocol mismatch for port -1: engine's protocol is http, the url protocol is https"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is my configuration but still gets error, Could you please have a look where am doing wrong ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="restrequest.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrIU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148977i81BA15683877916A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrIU.png" alt="0683p000009LrIU.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="requestschema.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrtY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135278iD3AEB2413CA6C847/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrtY.png" alt="0683p000009LrtY.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;And When I do with HTTP only I'm getting error like this&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;"Cannot assign requested address: bind&lt;BR /&gt;java.net.BindException: Cannot assign requested address: bind"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Dont know why but its works from Postman. And where I need to set content-type in tRestrequest Jan ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;May I know please how can I make it work ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LqyP"&gt;requestschema.png&lt;/A&gt;</description>
    <pubDate>Fri, 01 Dec 2017 02:55:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-12-01T02:55:36Z</dc:date>
    <item>
      <title>How to make Post request using tRestrequest component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-Post-request-using-tRestrequest-component/m-p/2352826#M119143</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have one API and url is looks like this "&lt;A href="https://mycontent.com/v2/tokens" target="_blank" rel="nofollow noopener noreferrer"&gt;https://mycontent.com/v2/tokens&lt;/A&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And when I use this postman I use below configuration&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Method: POST&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Headers&lt;/P&gt;
&lt;P&gt;Content-Type:&amp;nbsp;application/x-www-form-urlencoded&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Body:&lt;/P&gt;
&lt;P&gt;Check option: x-www-form-urlencoded&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Parameters added&lt;/P&gt;
&lt;P&gt;Username:abc&lt;/P&gt;
&lt;P&gt;Password:abc&lt;/P&gt;
&lt;P&gt;Department:Finance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It gives me XML response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have seen all posts on Talend forum but no one could help me to setup like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I know please how can I set up these configuration in trestrequest and get a response ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-Post-request-using-tRestrequest-component/m-p/2352826#M119143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T08:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Post request using tRestrequest component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-Post-request-using-tRestrequest-component/m-p/2352827#M119144</link>
      <description>&lt;P&gt;tRESTRequest does not respond, the response comes from tRESTResponse.&lt;/P&gt;
&lt;P&gt;You need always both components!&lt;/P&gt;
&lt;P&gt;You can have more than one&amp;nbsp;&lt;SPAN&gt;tRESTResponse but only one is allowed to answer per request.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This way you can send different responses (normal output or error response but you could also use only one tRESTResponse and handle all different responses with only this one.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 18:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-Post-request-using-tRestrequest-component/m-p/2352827#M119144</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-30T18:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Post request using tRestrequest component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-Post-request-using-tRestrequest-component/m-p/2352828#M119145</link>
      <description>&lt;P&gt;Hi Jan&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for the response.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Actually my API response with HTTPS only and it gives proper response when I test with Postman. But when I do with HTTPS in trestrequest it shows error&amp;nbsp;like this&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;"Caused by: java.lang.RuntimeException: Protocol mismatch for port -1: engine's protocol is http, the url protocol is https"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is my configuration but still gets error, Could you please have a look where am doing wrong ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="restrequest.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrIU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148977i81BA15683877916A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrIU.png" alt="0683p000009LrIU.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="requestschema.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrtY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135278iD3AEB2413CA6C847/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrtY.png" alt="0683p000009LrtY.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;And When I do with HTTP only I'm getting error like this&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;"Cannot assign requested address: bind&lt;BR /&gt;java.net.BindException: Cannot assign requested address: bind"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Dont know why but its works from Postman. And where I need to set content-type in tRestrequest Jan ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;May I know please how can I make it work ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LqyP"&gt;requestschema.png&lt;/A&gt;</description>
      <pubDate>Fri, 01 Dec 2017 02:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-Post-request-using-tRestrequest-component/m-p/2352828#M119145</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-01T02:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Post request using tRestrequest component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-Post-request-using-tRestrequest-component/m-p/2352829#M119146</link>
      <description>&lt;P&gt;Of course. This is correct. You have to activate https in the runtime container or you have to add a forward proxy which enforces encryption.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 07:32:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-Post-request-using-tRestrequest-component/m-p/2352829#M119146</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-01T07:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Post request using tRestrequest component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-Post-request-using-tRestrequest-component/m-p/2352830#M119147</link>
      <description>&lt;P&gt;Hi Jan&lt;/P&gt;&lt;P&gt;Its working absolutely fine with tRest component with POST.&amp;nbsp; Then why its not working with tRestrequest ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But Like you said "&lt;SPAN&gt;You have to activate https in the runtime container or you have to add a forward proxy which enforces encryption"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Where I need to look for to enable these setting ? Is it in Talend or somewhere else ? Because like I said my API gives response with HTTPS in POSTMAN, so where I'm missing ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 07:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-Post-request-using-tRestrequest-component/m-p/2352830#M119147</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-01T07:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Post request using tRestrequest component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-Post-request-using-tRestrequest-component/m-p/2352831#M119148</link>
      <description>&lt;P&gt;Any suggestion please ? Or its a BUG ?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 09:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-Post-request-using-tRestrequest-component/m-p/2352831#M119148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-01T09:56:35Z</dc:date>
    </item>
  </channel>
</rss>

