Jim,

Can you explain a bit further what you mean by "So, I created a new flow with the ListenHTTP processor to receive the post request, but that does not accept an http POST."?

PostHTTP and ListenHTTP really were designed to be used together (this was the primary mechanism for sharing data between two NiFi instances before site-to-site was created) and should integrate nicely.

When you perform the Post, though, be sure that the URL that you post to ends with "/contentListener". I.e., if ListenHTTP and PostHTTP both are running on the same box, you would post to http://localhost:4444/contentListener, for instance.

Does this help at all?

Thanks
-Mark


------ Original Message ------
From: "Jim Reilly" <[email protected]>
To: "[email protected]" <[email protected]>
Sent: 4/27/2015 11:33:20 AM
Subject: Testing the Receiving of an HTTP Post with "Send As FlowFile"

Hi,

I have a file on disk, and use the GetFile processor to retrieve it, then use the PostHTTP processor to send it out.

I need to test this flow, before I actually send the http POST to a specified URL.

I have a test servlet that received the HTTP Post and reads that data of out the request object.

But, when I change the PostHTTP to "Send As FlowFile" (per my requirement), it does not work since the PostHTTP does some prior validation steps to see what version of flowfile to use.
Thus, my servlet does not work.

So, I created a new flow with the ListenHTTP processor to receive the post request, but that does not accept an http POST. So, how can I test my flow of sending a file off disk, using an PostHTTP processor (per requirements)...??

  Tkx,
Jim


Reply via email to