Support Questions
Find answers, ask questions, and share your expertise

Newbie Question: How to pass post params and capture response from post API - traditional non rest, non json API

New Contributor



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.

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.

call to this api via curl --data option works just fine.

curl --data "username=xyz&password=xyz&function=xyz"

How can I replicate above call in nifi?

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.

But I'm getting errors - the api is not abe to authenticate my request.