arshellium
arshellium

Reputation: 235

Can't seem to curl from Nifi's ExecuteStreamProcess processor

I want to translate the following curl command:

curl -X POST -H \"Content-Type: application/json\" -d \'{\"text":\"Example message\"}\' <url> 

This is how I configured my ExecuteStreamProcessor:

Don't know what's the issue. The command run perfectly on terminal.

Upvotes: 2

Views: 3115

Answers (1)

Ahmed Ulde
Ahmed Ulde

Reputation: 24

-sSk;-u;username:password;--request;POST;--header;Content-Type:application/json;--header;Accept:application/json;--data;${data:toString()};https://restapiendpoint/

Use the above format in command arguments and put curl in command path.

Upvotes: 1

Related Questions