Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Curl with ExecuteStreamCommand

avatar
Contributor

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. 

MarioFRS_0-1705325180917.png

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)
 
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

avatar
Super Collaborator

Have you tried not escaping you " with \" in your command line arguments?