[ https://issues.apache.org/jira/browse/NIFI-564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aldrin Piri updated NIFI-564:
-----------------------------
Summary: ReplaceText not working as expected when forming POST requests for InvokeHTTP
(was: ReplaceText not working as expected when forming POST requests )
> ReplaceText not working as expected when forming POST requests for InvokeHTTP
> -----------------------------------------------------------------------------
>
> Key: NIFI-564
> URL: https://issues.apache.org/jira/browse/NIFI-564
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Aldrin Piri
> Assignee: Aldrin Piri
> Priority: Minor
>
> From Anup on the mailing list:
> {quote}
> 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
> {quote}
> {quote}
> I tried doing that with the below entries.. but its failing.
> Regular ExpressionInfo = (.*)
> Replacement ValueInfo = *appName=myApp&filename=$\{path}$\{filename}*
> Character SetInfo = UTF-8
> Maximum Buffer SizeInfo = 1 MB
> Evaluation ModeInfo = Entire text
> How would these be treated as form parameters?
> {quote}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
|