Reputation: 4190
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
?
Upvotes: 3
Views: 11581
Reputation: 18670
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.
Upvotes: 12