<?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 invoke http. i want to make form Authorisation before data send to api,i have been given a post http link (other than host url), content type and username and password , where and how to add them in nifi in invoke http in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/invoke-http-i-want-to-make-form-Authorisation-before-data/m-p/294929#M217503</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have got the below details other than normal host url,&lt;/P&gt;&lt;P&gt;POST /j_security_check&lt;BR /&gt;Content-type: application/x-www-form-urlencoded&lt;BR /&gt;&lt;BR /&gt;j_username=&amp;lt;userid&amp;gt;&amp;amp;j_password=&amp;lt;password&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Apr 2020 07:18:22 GMT</pubDate>
    <dc:creator>san_re</dc:creator>
    <dc:date>2020-04-28T07:18:22Z</dc:date>
    <item>
      <title>invoke http. i want to make form Authorisation before data send to api,i have been given a post http link (other than host url), content type and username and password , where and how to add them in nifi in invoke http</title>
      <link>https://community.cloudera.com/t5/Support-Questions/invoke-http-i-want-to-make-form-Authorisation-before-data/m-p/294929#M217503</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have got the below details other than normal host url,&lt;/P&gt;&lt;P&gt;POST /j_security_check&lt;BR /&gt;Content-type: application/x-www-form-urlencoded&lt;BR /&gt;&lt;BR /&gt;j_username=&amp;lt;userid&amp;gt;&amp;amp;j_password=&amp;lt;password&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 07:18:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/invoke-http-i-want-to-make-form-Authorisation-before-data/m-p/294929#M217503</guid>
      <dc:creator>san_re</dc:creator>
      <dc:date>2020-04-28T07:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: invoke http</title>
      <link>https://community.cloudera.com/t5/Support-Questions/invoke-http-i-want-to-make-form-Authorisation-before-data/m-p/294945#M217513</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/77350"&gt;@san_re&lt;/a&gt;&amp;nbsp;The configuration of Remote Url in InvokeHTTP should be as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/j_security_check?j_username=${j_username}&amp;amp;j_password=${j_password}&lt;/PRE&gt;&lt;P&gt;Notice the credential values are passed to the url with the ?. &amp;nbsp;This is the only change in the processor config.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a demo flow:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2020-04-28 at 8.02.58 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27274i0DDDD4C415D4BADA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-04-28 at 8.02.58 AM.png" alt="Screen Shot 2020-04-28 at 8.02.58 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;GenerateFlowFile - starts flow for testing&lt;/P&gt;&lt;P&gt;UpdateAttribute - sets user, pass,and mime type attributes needed in InvokeHttp&lt;/P&gt;&lt;P&gt;InvokeHttp - sends POST&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can find this template on my GitHub to inspect the entire flow:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/steven-dfheinz/NiFi-Templates/blob/master/InvokeHttp_Demo.xml" target="_blank" rel="noopener"&gt;https://github.com/steven-dfheinz/NiFi-Templates/blob/master/InvokeHttp_Demo.xml&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 12:11:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/invoke-http-i-want-to-make-form-Authorisation-before-data/m-p/294945#M217513</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2020-04-28T12:11:53Z</dc:date>
    </item>
  </channel>
</rss>

