HI anup,

If I understand correctly, you are looking to do a POST that falls in line
with a Content-Type of application/x-www-form-urlencoded.

Under this assumption, I believe you could get the execution process you
desire by performing a replace text of a file with your desired query
parameters, each having their desired value populated using Expression
Language from other attributes.  You could then use an UpdateAttribute
processor to specify the Content-Type of
application/x-www-form-urlencoded.  Finally, pass this file to an
InvokeHTTP as you suspect, and ensure that Content-Type is one of the
included attributes as a header.

On Thu, Apr 30, 2015 at 12:34 AM, anup s <[email protected]> wrote:

> Hi,
>    I have a REST service that needs to be invoked with a  few input
> parameters like filename and appName. I was able to call this REST service
> from NiFi through 'InvokeHTTP' processor by sending the parameters as part
> of the URL:
> "http://<ip>:<port>/app/context?filename=<filename>&appName=<appName>
>
> Now I need to use POST to do the same and send the parameters in the body
> part. How do I achieve this?
>
> METHOD: POST
> URL: http://<ip>:<port>/app/context
>
> Where do i send the parameters filename and appName?
>
>
> Regards,
> anup
>
>
>
> --
> View this message in context:
> http://apache-nifi-incubating-developer-list.39713.n7.nabble.com/Invoke-HTTP-POST-tp1290.html
> Sent from the Apache NiFi (incubating) Developer List mailing list archive
> at Nabble.com.
>

Reply via email to