<?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 HTTP Error 411 - The request must be chunked or have a content length with tHttpRequest in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/HTTP-Error-411-The-request-must-be-chunked-or-have-a-content/m-p/2507906#M141816</link>
    <description>&lt;P data-start="149" data-end="162"&gt;Hi everyone,&lt;/P&gt;
&lt;P data-start="164" data-end="265"&gt;I'm trying to send a JSON file via POST using a tHttpRequest, but every time I get an HTTP Error 411 (Studio 7.3).&lt;/P&gt;
&lt;P data-start="267" data-end="328"&gt;I tried adding a &lt;CODE data-start="284" data-end="300"&gt;Content-Length&lt;/CODE&gt; header, but it didn't work.&lt;/P&gt;
&lt;P data-start="330" data-end="460"&gt;Everything works fine when I send the JSON file using Talend API Tester, and I don't even need to set the &lt;CODE data-start="436" data-end="452"&gt;Content-Length&lt;/CODE&gt; header.&lt;/P&gt;
&lt;P data-start="462" data-end="539"&gt;I'm pretty sure I'm doing something wrong, but I can't figure out what it is.&lt;/P&gt;
&lt;P data-start="541" data-end="681"&gt;Here are some screenshots of the error, along with how I get the Authorization and &lt;CODE data-start="624" data-end="640"&gt;Content-Length&lt;/CODE&gt; headers, and how I set my tHttpRequest:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HTTP Error 411" style="width: 873px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178026i49228D04651F3AC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="411 Length Required.png" alt="HTTP Error 411" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;HTTP Error 411&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Authorization" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178027iEAB685501B5102CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="authorization.png" alt="Authorization" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Authorization&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Calculate the Content-Length" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178028i3DFAB9E949832B7D/image-size/large?v=v2&amp;amp;px=999" role="button" title="contentLength.png" alt="Calculate the Content-Length" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Calculate the Content-Length&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tHttpRequest" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178029iA2F7547CAEC33C8E/image-size/large?v=v2&amp;amp;px=999" role="button" title="tHttpRequest.png" alt="tHttpRequest" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tHttpRequest&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In the hope that someone can help me, I wish you all a great day.&lt;/P&gt;</description>
    <pubDate>Sat, 01 Mar 2025 11:21:29 GMT</pubDate>
    <dc:creator>Nadrel</dc:creator>
    <dc:date>2025-03-01T11:21:29Z</dc:date>
    <item>
      <title>HTTP Error 411 - The request must be chunked or have a content length with tHttpRequest</title>
      <link>https://community.qlik.com/t5/Talend-Studio/HTTP-Error-411-The-request-must-be-chunked-or-have-a-content/m-p/2507906#M141816</link>
      <description>&lt;P data-start="149" data-end="162"&gt;Hi everyone,&lt;/P&gt;
&lt;P data-start="164" data-end="265"&gt;I'm trying to send a JSON file via POST using a tHttpRequest, but every time I get an HTTP Error 411 (Studio 7.3).&lt;/P&gt;
&lt;P data-start="267" data-end="328"&gt;I tried adding a &lt;CODE data-start="284" data-end="300"&gt;Content-Length&lt;/CODE&gt; header, but it didn't work.&lt;/P&gt;
&lt;P data-start="330" data-end="460"&gt;Everything works fine when I send the JSON file using Talend API Tester, and I don't even need to set the &lt;CODE data-start="436" data-end="452"&gt;Content-Length&lt;/CODE&gt; header.&lt;/P&gt;
&lt;P data-start="462" data-end="539"&gt;I'm pretty sure I'm doing something wrong, but I can't figure out what it is.&lt;/P&gt;
&lt;P data-start="541" data-end="681"&gt;Here are some screenshots of the error, along with how I get the Authorization and &lt;CODE data-start="624" data-end="640"&gt;Content-Length&lt;/CODE&gt; headers, and how I set my tHttpRequest:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HTTP Error 411" style="width: 873px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178026i49228D04651F3AC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="411 Length Required.png" alt="HTTP Error 411" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;HTTP Error 411&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Authorization" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178027iEAB685501B5102CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="authorization.png" alt="Authorization" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Authorization&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Calculate the Content-Length" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178028i3DFAB9E949832B7D/image-size/large?v=v2&amp;amp;px=999" role="button" title="contentLength.png" alt="Calculate the Content-Length" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Calculate the Content-Length&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tHttpRequest" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/178029iA2F7547CAEC33C8E/image-size/large?v=v2&amp;amp;px=999" role="button" title="tHttpRequest.png" alt="tHttpRequest" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tHttpRequest&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In the hope that someone can help me, I wish you all a great day.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Mar 2025 11:21:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/HTTP-Error-411-The-request-must-be-chunked-or-have-a-content/m-p/2507906#M141816</guid>
      <dc:creator>Nadrel</dc:creator>
      <dc:date>2025-03-01T11:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP Error 411 - The request must be chunked or have a content length with tHttpRequest</title>
      <link>https://community.qlik.com/t5/Talend-Studio/HTTP-Error-411-The-request-must-be-chunked-or-have-a-content/m-p/2508192#M141822</link>
      <description>&lt;P&gt;By reading &lt;A href="https://community.qlik.com/t5/Design-and-Development/tRestClient-PUT-issue-Body/m-p/2293596#M66548" target="_self"&gt;this topic&lt;/A&gt; in detail, I decided to try using the tRest component instead of tHttpRequest.&lt;/P&gt;
&lt;P&gt;I added my headers (Content-Type, Content-Length, and Authorization), included the body, and it seems to work.&lt;/P&gt;
&lt;P&gt;I still don’t know why tHttpRequest kept giving me an Error Code 411, even though there was a Content-Length header, but I'm going to use tRest from now on (&lt;A href="https://help.qlik.com/talend/fr-FR/components/7.3/rest/trest)" target="_blank"&gt;https://help.qlik.com/talend/fr-FR/components/7.3/rest/trest)&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;I wish you all a good day.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 10:24:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/HTTP-Error-411-The-request-must-be-chunked-or-have-a-content/m-p/2508192#M141822</guid>
      <dc:creator>Nadrel</dc:creator>
      <dc:date>2025-03-04T10:24:27Z</dc:date>
    </item>
  </channel>
</rss>

