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!
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
2 Asked on December 18, 2021 by six_minute_abs
2 Asked on December 18, 2021 by astha-srivastava
2 Asked on December 18, 2021 by chris-reiche
1 Asked on December 18, 2021 by rod-talingting
0 Asked on December 18, 2021 by aurelien
2 Asked on December 18, 2021 by liad-goren
1 Asked on December 18, 2021 by rajesh-paripelly
3 Asked on December 18, 2021 by anish-raj
1 Asked on December 18, 2021 by fei-deng
1 Asked on December 18, 2021 by petereg157
0 Asked on December 18, 2021 by xtealer
2 Asked on December 18, 2021 by andrey-kiselev
0 Asked on December 18, 2021
2 Asked on December 18, 2021 by tresk33
1 Asked on December 18, 2021 by clancinio
0 Asked on December 16, 2021
3 Asked on December 16, 2021 by styl3z
1 Asked on December 16, 2021 by dorottya-burmeister
Get help from others!
Recent Questions
Recent Answers
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP