Support Questions
Find answers, ask questions, and share your expertise

How configure HTTP headers in InvokeHTTP ?

New Contributor

Hello,

 

I actually try to request an API (GET method) with InvokeHTTP processor in NiFi.

For that, I have to :

  • declare an "access token" in HTTP header. This access token have to be write like that "Authorization : bearer my_token"
  • set parameters in URL

For my tests, i would like to write response content in a file.

 

I'd tried different practices but none are working :

  • Set my access_token in an "UpdateAttribute" processor
  • Set my access_token directly in "InvokeHTTP"
  • Declare Content-Type as "application/json"

Here, some screens of my conf.
FYI, "ExecuteScript" processor build the access token and he does well.

 

all.PNGinvokehttp.PNGupdateattribute.PNG

Thanks for your responses.