Hi Adam,

Yes it makes sense. It was just an idea for an additional possibility, not
a fundamental change. Anyway, I used other processors as suggested.

Thanks Adam,
Pierre
On Mar 13, 2016 23:52, "Adam Taft" <[email protected]> wrote:

> I think it makes total sense that POST/PUT requests read from the flowfile
> content.  Therefore, the problem should be fixed further up in the flow
> design.  For example, try these solutions:
>
> GenerateFlowFile -> ReplaceText -> InvokeHTTP   (or)
> GetFile -> InvokeHTTP
>
> The problem you're describing has more to do with generating static
> flowfile content, which is a separate concern from how to transfer flowfile
> content over the wire via http.
>
> If the above solutions don't work for you, perhaps a modification of
> GenerateFlowFile could be made which uses static content instead of random
> content?
>
> Hope this helps.
>
> Adam
>
>
> On Fri, Mar 11, 2016 at 6:56 AM, Pierre Villard <
> [email protected]
> > wrote:
>
> > Hi,
> >
> > Would it make sense to add a property "body" allowing the user to
> manually
> > set the body of the request for PUT/POST requests?
> >
> > At the moment, the body of the request seems to be only set with the
> > content of incoming flow files. But it is possible to use this processor
> > without incoming relationship. It would be useful to be able to set the
> > body manually.
> >
> > The behaviour would be: if there is an incoming relationship, the
> incoming
> > flow file content is used whatever the property "body" is, and if there
> is
> > no incoming relationship, the request body is based on the property
> value.
> >
> > What do you think?
> >
> > Pierre
> >
>

Reply via email to