<?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 an http POST application/x-www-form-urlencoded request using Apache-nifi's processor in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-send-an-http-POST-application-x-www-form-urlencoded/m-p/377074#M243139</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107173"&gt;@piyush7829&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our NiFi experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Sep 2023 19:53:33 GMT</pubDate>
    <dc:creator>DianaTorres</dc:creator>
    <dc:date>2023-09-29T19:53:33Z</dc:date>
    <item>
      <title>How to send an http POST application/x-www-form-urlencoded request using Apache-nifi's processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-send-an-http-POST-application-x-www-form-urlencoded/m-p/377067#M243138</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to get an key from GetMongo Processor and then I am trying to replace the value&amp;nbsp; in the format&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;key=value&lt;/PRE&gt;&lt;P&gt;using&amp;nbsp; ReplaceText where value here is the result which I am getting and then passing&amp;nbsp; to different POST API which supports `&lt;SPAN&gt;application/x-www-form-urlencoded`&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;From GetMongo Processor I am getting value {&lt;SPAN class="table-cell required"&gt;&lt;SPAN class="table-cell required"&gt;match_id&lt;/SPAN&gt;&lt;/SPAN&gt;: 789456}&lt;/P&gt;&lt;P&gt;and In replaceText Processor I am using in&amp;nbsp;&lt;SPAN class="table-cell required"&gt;Search Value :&amp;nbsp;(?s)(^.*$) and&amp;nbsp;&lt;SPAN class="table-cell required"&gt;Replacement Value in&amp;nbsp;match_id=${match_id:urlEncode()}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="table-cell required"&gt;&lt;SPAN class="table-cell required"&gt;But in API data is getting passed as&amp;nbsp;{ match_id: '' } though it should pass as&amp;nbsp;&amp;nbsp;{ match_id: 789456 }&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="table-cell required"&gt;&lt;SPAN class="table-cell required"&gt;What I am doing wrong in ReplaceText Processor&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="table-cell required"&gt;&lt;SPAN class="table-cell required"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2023-09-30 00-22-19.png" style="width: 798px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38571i29DC45E6BFBCE3D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2023-09-30 00-22-19.png" alt="Screenshot from 2023-09-30 00-22-19.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2023-09-30 00-22-05.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38572i8FA63DEDA17776E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2023-09-30 00-22-05.png" alt="Screenshot from 2023-09-30 00-22-05.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="table-cell required"&gt;&lt;SPAN class="table-cell required"&gt;Can you please help me out with this ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 18:53:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-send-an-http-POST-application-x-www-form-urlencoded/m-p/377067#M243138</guid>
      <dc:creator>piyush7829</dc:creator>
      <dc:date>2023-09-29T18:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to send an http POST application/x-www-form-urlencoded request using Apache-nifi's processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-send-an-http-POST-application-x-www-form-urlencoded/m-p/377074#M243139</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107173"&gt;@piyush7829&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our NiFi experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 19:53:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-send-an-http-POST-application-x-www-form-urlencoded/m-p/377074#M243139</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2023-09-29T19:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to send an http POST application/x-www-form-urlencoded request using Apache-nifi's processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-send-an-http-POST-application-x-www-form-urlencoded/m-p/377087#M243140</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107173"&gt;@piyush7829&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I'm assuming you are getting the json {"&lt;SPAN class="table-cell required"&gt;match_id"&lt;/SPAN&gt;: 789456} response from the GetMongo processor, after this you are directly using ReplaceText processor with the replace value:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;match_id=${match_id:urlEncode()}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;This replace value is using flowfile attribute&amp;nbsp; ${match_id}, but I dont see in your flow where this attribute is defined! I think you are missing a step to extract this attribute between GetMongo &amp;amp; ReplaceText processors. If the response is Json then you can use EvaluateJsonPath processor to extract the match_id attribute :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAMSAL_0-1696083720453.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38576i35A04BD4C4F6DA91/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAMSAL_0-1696083720453.png" alt="SAMSAL_0-1696083720453.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After you connect the "match" rel from the above processor to the ReplaceText processor , the replacement value should work.&lt;/P&gt;&lt;P&gt;If that helps please &lt;STRONG&gt;accept&lt;/STRONG&gt; solution.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 30 Sep 2023 14:24:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-send-an-http-POST-application-x-www-form-urlencoded/m-p/377087#M243140</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2023-09-30T14:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to send an http POST application/x-www-form-urlencoded request using Apache-nifi's processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-send-an-http-POST-application-x-www-form-urlencoded/m-p/377105#M243141</link>
      <description>&lt;P&gt;hello &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your reply. I have tried what you suggested. And even i tried that before but I am still getting same issue. Please find screenshots&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2023-10-02 01-17-09.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38584i97A99427DA4BEAA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot from 2023-10-02 01-17-09.png" alt="Screenshot from 2023-10-02 01-17-09.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2023-10-02 01-16-51.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38583i8B613CD85D2100EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot from 2023-10-02 01-16-51.png" alt="Screenshot from 2023-10-02 01-16-51.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2023-10-02 01-17-21.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38585i9D81563B5B880B24/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot from 2023-10-02 01-17-21.png" alt="Screenshot from 2023-10-02 01-17-21.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am still getting&amp;nbsp;{ match_id: '' }&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Oct 2023 19:50:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-send-an-http-POST-application-x-www-form-urlencoded/m-p/377105#M243141</guid>
      <dc:creator>piyush7829</dc:creator>
      <dc:date>2023-10-01T19:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to send an http POST application/x-www-form-urlencoded request using Apache-nifi's processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-send-an-http-POST-application-x-www-form-urlencoded/m-p/377106#M243142</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107173"&gt;@piyush7829&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Change the setting of the EvaluateJsonPath "&lt;STRONG&gt;Destination&lt;/STRONG&gt;" Property to flowfile-attribute instead of flowfile-content. Setting this property with the later value will change the whole flowfile content and wont create the attribute you are looking for in the replacetext processor. if that still doesnt work, make sure to check after the EvaluateJsonPath to see if the "match_id" attribute was created and populated with the correct value, if not then I need to see the response from the GetMongo processor to make sure the correct path is being set in the EvaluateJsonPath.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Oct 2023 20:03:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-send-an-http-POST-application-x-www-form-urlencoded/m-p/377106#M243142</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2023-10-01T20:03:40Z</dc:date>
    </item>
  </channel>
</rss>

