Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Static header for PostHTTP/InvokeHTTP processor - NiFi

Tags:

apache-nifi

I am trying to add a static header to my PostHTTP/InvokeHTTP processor.

As I have gone through the documentation and this answer, it seems like we will support only the attributes from the input flowfile of the processor.

I tried adding the header in the below format, in the attribute Attributes to Send as HTTP Headers (Regex) / Attributes to Send . But it didn't workout.

"key:value"

How can I set a static header which is not part of the flowfile?

like image 570
Kannan Ramamoorthy Avatar asked Aug 18 '26 00:08

Kannan Ramamoorthy


1 Answers

In InvokeHttp, any user-defined properties will also be sent as headers. Go to the configure screen of InvokeHttp, and on the properties tab, click the + icon in the top right to add a property. Make the name of the property the name of the header and the value of the property the value of the header.

like image 116
Bryan Bende Avatar answered Aug 20 '26 22:08

Bryan Bende



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!