So I am having some woes with sending HTTP Post requests to my NiFi server by
using curl to send a JSON object.
I have a ListenHTTP Processor running that is configured as so:
- BasePath = contentListener
- ListeningPort = 8011
- Authorized DN Pattern = .*
- Max Unconfirmed FlowFile Time = 60 secs

And I am trying to send a JSON object via curl:
curl -i -X POST -H 'Content-Type: application/json' -d '{"test":"Hello,
NiFi"}' http://[hostname for NiFi]:8011/contentListener

And I feel like this needs to be sent elsewhere, but I am thinking that the
internal HTTP Server that ListenHTTP creates because I get /curl: (7)
couldn't connect to host/. This usually arises as a result of the server
receiving the HTTP request being down, firewall (have none at the moment),
and other server errors.

I have been able to successfully use the Rest API to modify Processors,
Processor Groups, etc through curl. Is there something I am missing?



--
View this message in context: 
http://apache-nifi-developer-list.39713.n7.nabble.com/ListenHTTP-Questions-tp11441.html
Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.

Reply via email to