<?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: error when using tSystem with cURL to HTTP POST a single json file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/error-when-using-tSystem-with-cURL-to-HTTP-POST-a-single-json/m-p/2243519#M29975</link>
    <description>Thanks for the answer.&lt;BR /&gt;As said before the tHttpRequest is broken in talend v 5.6.1. &lt;BR /&gt;I've tried the tRestClient but our web service on the other side doesn't want to recognize the data posted. I am now trying to figure out if this come from my configuration of the tRestClient or our web service.</description>
    <pubDate>Fri, 01 May 2015 00:24:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-05-01T00:24:43Z</dc:date>
    <item>
      <title>error when using tSystem with cURL to HTTP POST a single json file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/error-when-using-tSystem-with-cURL-to-HTTP-POST-a-single-json/m-p/2243517#M29973</link>
      <description>The tHttpRequest_1 is broken in in 5.6.1 to HTTP POST a single json file (see #
&lt;A href="https://jira.talendforge.org/browse/TDI-31574" target="_blank" rel="nofollow noopener noreferrer"&gt;31574&lt;/A&gt;)
&lt;BR /&gt;As work around I am using a tSystem to do pass the JSON file via cURL. My command is the following:
&lt;BR /&gt;
&lt;PRE&gt;"curl -X POST -d 'data={\"status\":"+row24.status+",\"details\":\"+row24.details+"\"}' " +context.url&lt;/PRE&gt;
&lt;BR /&gt;and the answer from the service is 
&lt;BR /&gt;
&lt;PRE&gt;{"success":false,"error":"Missing POST data"}&lt;/PRE&gt;
&lt;BR /&gt;
&lt;BR /&gt;The same command from my terminal (linux) works great.
&lt;BR /&gt;I tried to replace all my context variable with test data for debugging purpose -&amp;nbsp; without success
&lt;BR /&gt;Any idea why the POST data are not recognized when using tSystem?</description>
      <pubDate>Wed, 29 Apr 2015 22:02:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/error-when-using-tSystem-with-cURL-to-HTTP-POST-a-single-json/m-p/2243517#M29973</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-29T22:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: error when using tSystem with cURL to HTTP POST a single json file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/error-when-using-tSystem-with-cURL-to-HTTP-POST-a-single-json/m-p/2243518#M29974</link>
      <description>There are some possible problems. At first there is a difference between running a script within the linux shell (with all environment variables set and tSystem which has a shell without these env vars.
&lt;BR /&gt;Did you tried the component tRESTClient or tHttpRequest? I would say this much more reliable than depending to have curl available.</description>
      <pubDate>Thu, 30 Apr 2015 16:57:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/error-when-using-tSystem-with-cURL-to-HTTP-POST-a-single-json/m-p/2243518#M29974</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-30T16:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: error when using tSystem with cURL to HTTP POST a single json file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/error-when-using-tSystem-with-cURL-to-HTTP-POST-a-single-json/m-p/2243519#M29975</link>
      <description>Thanks for the answer.&lt;BR /&gt;As said before the tHttpRequest is broken in talend v 5.6.1. &lt;BR /&gt;I've tried the tRestClient but our web service on the other side doesn't want to recognize the data posted. I am now trying to figure out if this come from my configuration of the tRestClient or our web service.</description>
      <pubDate>Fri, 01 May 2015 00:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/error-when-using-tSystem-with-cURL-to-HTTP-POST-a-single-json/m-p/2243519#M29975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-01T00:24:43Z</dc:date>
    </item>
  </channel>
</rss>

