In Nifi processor "InvokeHttp" invoked by "ExtractText" where do you write body of POSt request

Stack Overflow Asked by user11336100 on January 1, 2022

Before posting this question about Apache NiFi InvokeHTTP and ExtractHttp I have gone through all other questions and their answers but I am still not able to write body. My situation is as below:
(1) "GetFile" Processor: gets file which has 2 URLs on separate lines
(2) "SplitText" processor: splits the 2 URLs
(3) "ExtractText" processor: assigns URL to a property I defined called myUrl (which I use in InvokeHttp – Remote URL property)
(4) "InvokeHttp" : I use myUrl in "Remote Url" property. Have set "Send Message Body" as true.

My message body is constant and will not change.
But my question is, where/how do I include the message body. How can I include the message body in ExtractText (in point 3 above).

I know that in "GenerateFLowFile" we can include message body in property "Custom Text" and then link this to "InvokeHttp". But in my case I am using ExtractText to invoke "InvokeHttp"

Please please help!

One Answer

Use a ReplaceText processor to populate the POST body as the flowfile content prior to using InvokeHTTP. If the content is static, you can just replace all the existing content (.*) and replace it with the literal bytes you want to send.

Answered by Andy on January 1, 2022

Add your own answers!

Related Questions

Pass a generic class in method parameter

2  Asked on December 18, 2021 by astha-srivastava


Create a pivot table using two columns treating them as a group

2  Asked on December 18, 2021 by chris-reiche


PHP get data form XML using PHPSimpleXML

2  Asked on December 18, 2021 by xenpanda


docker commands not working with latest version

1  Asked on December 18, 2021 by rod-talingting


Space line above sticky top navbar

0  Asked on December 18, 2021 by aurelien


PHP for directory as opposed to a file

1  Asked on December 18, 2021 by j-lo


Pandas to Json Formatting issue

1  Asked on December 18, 2021 by petereg157


react-native-camera orientation change freeze

0  Asked on December 18, 2021 by xtealer


KeyError is raised when key exists in dictionary

2  Asked on December 18, 2021 by andrey-kiselev


How to insert date and time in Oracle databases?

1  Asked on December 18, 2021 by clancinio


How to get one data from database by id (MEAN Stack)?

1  Asked on December 16, 2021 by dorottya-burmeister


Ask a Question

Get help from others!

© 2023 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP