Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Nifi http post -F parameter

Highlighted

Nifi http post -F parameter

New Contributor

I am working with invokehttp module and need to make a POST request. It has three parameters: -H, -d, -F.
-H meanings are transmitted through a couple of attributes and its meaning.
-d - through flowfile content in a necessary view.

How do I transmit -F parameter? I want to use rest api rocket.chat on nifi.

1 REPLY 1

Re: Nifi http post -F parameter

Master Collaborator

@QWERTY   I am not sure what you mean by parameters for InvokeHttp.  If you can explain further perhaps I can comment more.    That said, I have used InvokeHTTP (Nifi 1.9+)  many times for many Use Cases and all elements needed are part of this processor for $_GET & $_POST to any API.

 

  1. POST Body (file) Content goes in the content of the Flow File
  2. GET values and parameters go after the Remote Url with this format: http://remote.url/?value1=1&value2=2
  3. Additional Configuration is found in the Processor Configuration Values to send headers, authorization details, ssl details, proxy, etc.

 

I suspect you may find that -F is #2 above.

 

 

If this answer resolves your issue or allows you to move forward, please choose to ACCEPT this solution and close this topic. If you have further dialogue on this topic please comment here or feel free to private message me. If you have new questions related to your Use Case please create separate topic and feel free to tag me in your post.  

 

Thanks,

 

 


 


If this answer resolves your issue or allows you to move forward, please choose to ACCEPT this solution and close this topic. If you have further dialogue on this topic please comment here or feel free to private message me. If you have new questions related to your Use Case please create separate topic and feel free to tag me in your post.  


 


Thanks,



Steven

Don't have an account?
Coming from Hortonworks? Activate your account here