Reputation: 235
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
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