<?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>question Re: How to send json body to Apache NiFi InvokeHTTP in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-send-json-body-to-Apache-NiFi-InvokeHTTP/m-p/371607#M241022</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The request Body has to be provided as flowfile to the InvokeHttp Processor per the processor description:&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="SAMSAL_0-1685111037806.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/37664i53EF453523645ECB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAMSAL_0-1685111037806.png" alt="SAMSAL_0-1685111037806.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use an upstream processor to the InvokeHttp like ReplaceText processor to generate the request body a follows:&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="SAMSAL_1-1685111384642.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/37665i93D15E08B8ACB7ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAMSAL_1-1685111384642.png" alt="SAMSAL_1-1685111384642.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To send incoming flowfile content as Request Body , make sure the following property of the invokehttp processor is set to true (default):&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="SAMSAL_2-1685111771806.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/37666i9C1AFE8196EC3499/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAMSAL_2-1685111771806.png" alt="SAMSAL_2-1685111771806.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make sure you are always getting a response no matter if its successful or not make sure to set the following invokehttp processor to true (default false):&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="SAMSAL_3-1685111869728.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/37667i244C4C628B3D5377/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAMSAL_3-1685111869728.png" alt="SAMSAL_3-1685111869728.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that helps please accept solution.&lt;/P&gt;&lt;P&gt;Thanks&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 May 2023 14:38:07 GMT</pubDate>
    <dc:creator>SAMSAL</dc:creator>
    <dc:date>2023-05-26T14:38:07Z</dc:date>
    <item>
      <title>How to send json body to Apache NiFi InvokeHTTP</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-send-json-body-to-Apache-NiFi-InvokeHTTP/m-p/371588#M241016</link>
      <description>&lt;P&gt;I have an InvokeHTTP processor Apache NiFi, I need to send a curl request with this content&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl https://reqbin.com/echo/post/json
-X POST
-H 'Content-Type: application/json'
-d '{
	"login": "my_login",
	"password":"my_password"
}'&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;I can't figure out what to do -d&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 06:42:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-send-json-body-to-Apache-NiFi-InvokeHTTP/m-p/371588#M241016</guid>
      <dc:creator>skoch244</dc:creator>
      <dc:date>2023-05-26T06:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to send json body to Apache NiFi InvokeHTTP</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-send-json-body-to-Apache-NiFi-InvokeHTTP/m-p/371607#M241022</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The request Body has to be provided as flowfile to the InvokeHttp Processor per the processor description:&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="SAMSAL_0-1685111037806.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/37664i53EF453523645ECB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAMSAL_0-1685111037806.png" alt="SAMSAL_0-1685111037806.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use an upstream processor to the InvokeHttp like ReplaceText processor to generate the request body a follows:&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="SAMSAL_1-1685111384642.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/37665i93D15E08B8ACB7ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAMSAL_1-1685111384642.png" alt="SAMSAL_1-1685111384642.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To send incoming flowfile content as Request Body , make sure the following property of the invokehttp processor is set to true (default):&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="SAMSAL_2-1685111771806.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/37666i9C1AFE8196EC3499/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAMSAL_2-1685111771806.png" alt="SAMSAL_2-1685111771806.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make sure you are always getting a response no matter if its successful or not make sure to set the following invokehttp processor to true (default false):&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="SAMSAL_3-1685111869728.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/37667i244C4C628B3D5377/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAMSAL_3-1685111869728.png" alt="SAMSAL_3-1685111869728.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that helps please accept solution.&lt;/P&gt;&lt;P&gt;Thanks&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 14:38:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-send-json-body-to-Apache-NiFi-InvokeHTTP/m-p/371607#M241022</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2023-05-26T14:38:07Z</dc:date>
    </item>
  </channel>
</rss>

