Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Curl with ExecuteStreamCommand
Labels:
- Labels:
-
Apache NiFi
Contributor
Created ‎01-15-2024 05:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everyone,
I need help for a curl call with the Execute Stream Command processor. I can't use the invoke http processor because I need to bypass the SSL certificate check. the following request is made.
Command Arguments
--location;--insecure;--request;POST;--header;'Content-Type: application/json';--data-raw;'{\"username\": \"xxx\",\"password\": \"xxx\"}';https://99.9.99.999:8091/auth
If i run the processor, i get the following output
Attribute Values
execution.command
curl
execution.command.args
--location;--insecure;--request;POST;--header;'Content-Type: application/json';--data-raw;'{\"username\": \"xxx\",\"password\": \"xxx\"}';https://99.9.99.999:8091/auth
execution.error
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 101 100 59 100 42 253 180 --:--:-- --:--:-- --:--:-- 433
FlowFile Content
Bad Auth Request: Expecting value: line 1 column 1 (char 0)
Bad Auth Request: Expecting value: line 1 column 1 (char 0)
Does anyone have any idea how I can fix this? When I execute the command via the command line, I get the expected response.
Thanks
1 REPLY 1
Super Collaborator
Created ‎04-09-2024 12:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you tried not escaping you " with \" in your command line arguments?
