Support Questions

Find answers, ask questions, and share your expertise

Who agreed with this solution

avatar
Master Collaborator

Hi @renuu 

 

ListenHTTP also works same way -
Find below sample configuration and how to invoke using curl.

ListenHTTP listens on a specific port (in my case 8889) and a base path ('/curlRequestListener')

Screenshot 2020-06-04 at 2.17.45 PM.png

 

 

Screenshot 2020-06-04 at 2.17.55 PM.png

 

 

Using below curl command from terminal you can post data -

curl -d 'my request data'  http://<nifihostname>:8889/curlRequestListener

 

'my request data' is the sample data which I am posting to the ListenHTTP processor and same is received in processors and queued as flowfile. 

 

Received request Flowfile content -

Screenshot 2020-06-04 at 2.18.29 PM.png

View solution in original post

Who agreed with this solution