<?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: [NIFI] Is it possible to make  a x-www-form-urlencoded POST request through InvokeHttp in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Is-it-possible-to-make-a-x-www-form-urlencoded-POST/m-p/339577#M233124</link>
    <description>&lt;P&gt;Thanks for your reply&amp;nbsp;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95503"&gt;@steven-matison&lt;/a&gt;&amp;nbsp;.&lt;BR /&gt;I was trying to use FlowFile Form Data Name in the InvokeHTTP processor&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="azg_0-1648129645103.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34002iBE5A9FBBAAD540F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="azg_0-1648129645103.png" alt="azg_0-1648129645103.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Someone gave me the right way to resolve my issue and it worked :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.15.3/org.apache.nifi.processors.standard.InvokeHTTP/index.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.15.3/org.apache.nifi.processors.standard.InvokeHTTP/index.html&lt;/A&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;When the HTTP Method is POST, dynamic properties with the property name in the form of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;post:form:&amp;lt;NAME&amp;gt;, where the will be the form data name, will be used to fill out the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;multipart form parts.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;so,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;post:form:&amp;lt;NAME&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;could be used for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;multipart/form-data&lt;/P&gt;&lt;P&gt;and you want&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;application/x-www-form-urlencoded&lt;/P&gt;&lt;P&gt;format of http body should be&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;parm1=Value1&amp;amp;parm2=Value2&lt;/P&gt;&lt;P&gt;before calling invokeHttp use replaceText with approximately this expression in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;replacement value:&lt;/P&gt;&lt;PRE&gt;client_secret=${&lt;SPAN class="hljs-attr"&gt;client_secret&lt;/SPAN&gt;:&lt;SPAN class="hljs-title function_"&gt;urlEncode&lt;/SPAN&gt;()}&amp;amp;client_secret=${&lt;SPAN class="hljs-attr"&gt;client_secret&lt;/SPAN&gt;:&lt;SPAN class="hljs-title function_"&gt;urlEncode&lt;/SPAN&gt;()}&amp;amp;...&lt;/PRE&gt;&lt;P&gt;then use invokehttp with&lt;/P&gt;&lt;PRE&gt;Send Message Body = true
Content-Type = application/x-www-form-urlencoded&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Mar 2022 13:49:10 GMT</pubDate>
    <dc:creator>azg</dc:creator>
    <dc:date>2022-03-24T13:49:10Z</dc:date>
    <item>
      <title>[NIFI] Is it possible to make  a x-www-form-urlencoded POST request through InvokeHttp</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Is-it-possible-to-make-a-x-www-form-urlencoded-POST/m-p/339398#M233080</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I just started using Nifi and i would like to know if it's possible to perform a POST with a content-type set to `x-www-form-urlencoded`. I need to pass these key/values to my request :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;grant_type	refresh_token
client_id	myClientId
client_secret	myClientSecret
refresh_token	myRefreshToken&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 15:00:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Is-it-possible-to-make-a-x-www-form-urlencoded-POST/m-p/339398#M233080</guid>
      <dc:creator>azg</dc:creator>
      <dc:date>2022-03-23T15:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: [NIFI] Is it possible to make  a x-www-form-urlencoded POST request through InvokeHttp</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Is-it-possible-to-make-a-x-www-form-urlencoded-POST/m-p/339416#M233089</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/96802"&gt;@azg&lt;/a&gt;&amp;nbsp; Yes, just add the values you want in the processor configuration tab.&amp;nbsp; Click + to add new key/value pairs.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 21:10:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Is-it-possible-to-make-a-x-www-form-urlencoded-POST/m-p/339416#M233089</guid>
      <dc:creator>steven-matison</dc:creator>
      <dc:date>2022-03-23T21:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: [NIFI] Is it possible to make  a x-www-form-urlencoded POST request through InvokeHttp</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Is-it-possible-to-make-a-x-www-form-urlencoded-POST/m-p/339577#M233124</link>
      <description>&lt;P&gt;Thanks for your reply&amp;nbsp;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95503"&gt;@steven-matison&lt;/a&gt;&amp;nbsp;.&lt;BR /&gt;I was trying to use FlowFile Form Data Name in the InvokeHTTP processor&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="azg_0-1648129645103.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34002iBE5A9FBBAAD540F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="azg_0-1648129645103.png" alt="azg_0-1648129645103.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Someone gave me the right way to resolve my issue and it worked :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.15.3/org.apache.nifi.processors.standard.InvokeHTTP/index.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.15.3/org.apache.nifi.processors.standard.InvokeHTTP/index.html&lt;/A&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;When the HTTP Method is POST, dynamic properties with the property name in the form of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;post:form:&amp;lt;NAME&amp;gt;, where the will be the form data name, will be used to fill out the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;multipart form parts.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;so,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;post:form:&amp;lt;NAME&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;could be used for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;multipart/form-data&lt;/P&gt;&lt;P&gt;and you want&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;application/x-www-form-urlencoded&lt;/P&gt;&lt;P&gt;format of http body should be&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;parm1=Value1&amp;amp;parm2=Value2&lt;/P&gt;&lt;P&gt;before calling invokeHttp use replaceText with approximately this expression in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;replacement value:&lt;/P&gt;&lt;PRE&gt;client_secret=${&lt;SPAN class="hljs-attr"&gt;client_secret&lt;/SPAN&gt;:&lt;SPAN class="hljs-title function_"&gt;urlEncode&lt;/SPAN&gt;()}&amp;amp;client_secret=${&lt;SPAN class="hljs-attr"&gt;client_secret&lt;/SPAN&gt;:&lt;SPAN class="hljs-title function_"&gt;urlEncode&lt;/SPAN&gt;()}&amp;amp;...&lt;/PRE&gt;&lt;P&gt;then use invokehttp with&lt;/P&gt;&lt;PRE&gt;Send Message Body = true
Content-Type = application/x-www-form-urlencoded&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 13:49:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Is-it-possible-to-make-a-x-www-form-urlencoded-POST/m-p/339577#M233124</guid>
      <dc:creator>azg</dc:creator>
      <dc:date>2022-03-24T13:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: [NIFI] Is it possible to make  a x-www-form-urlencoded POST request through InvokeHttp</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Is-it-possible-to-make-a-x-www-form-urlencoded-POST/m-p/382144#M244503</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/96802"&gt;@azg&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95503"&gt;@steven-matison&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this is an old post but I wonder if the procedure mentioned here is still relevant?&lt;/P&gt;&lt;P&gt;I can't make it work on NiFi 1.21.0, the parameters on the 'InvokeHttp' processor changed a lot but I don't think this is the problem, can you help me?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 21:37:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Is-it-possible-to-make-a-x-www-form-urlencoded-POST/m-p/382144#M244503</guid>
      <dc:creator>Alfies</dc:creator>
      <dc:date>2024-01-12T21:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: [NIFI] Is it possible to make  a x-www-form-urlencoded POST request through InvokeHttp</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NIFI-Is-it-possible-to-make-a-x-www-form-urlencoded-POST/m-p/382266#M244525</link>
      <description>&lt;P&gt;Ofcourse we can help.&amp;nbsp; Just make a new post.&amp;nbsp; Try to include as much detail as possible, screenshots, how you have invokeHttp configured, errors, etc.&amp;nbsp; &amp;nbsp;In your new post tag me using the&amp;nbsp;@ with my username "steven-matison".&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 11:11:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NIFI-Is-it-possible-to-make-a-x-www-form-urlencoded-POST/m-p/382266#M244525</guid>
      <dc:creator>steven-matison</dc:creator>
      <dc:date>2024-01-16T11:11:44Z</dc:date>
    </item>
  </channel>
</rss>

