title: Apache Nifi : How to pass post params and capture response from post API - traditional non rest, non json API
body: <p>I'm trying to pull data from a post API that expects authentication and request parameters as part of the request body. I guess, what they do is access the data from the post variables.</p>
  
  <p>What I have seen so far in documentation is how to send POST via JSON or headers. In my case, no headers just the post body parameters.</p>
  
  <p>call to this api via curl --data option works just fine.</p>
  
  <p>curl --data "username=xyz&amp;password=xyz&amp;function=xyz" <a href="http://example.com/api.php" rel="nofollow noreferrer">http://example.com/api.php</a></p>
  
  <p>How can I replicate above call in nifi?</p>
  
  <p>I have tried multiple methods without success. Latest has been Generate flow file, update attributes (where i fill in the parameters), invoke http then putfile.</p>
  
  <p>But I'm getting errors - the api is not abe to authenticate my request.</p>
  
  <p>Thanks<a href="https://i.stack.imgur.com/PIoaG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PIoaG.png" alt="enter image description here"></a></p>