<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Curl with ExecuteStreamCommand in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Curl-with-ExecuteStreamCommand/m-p/386349#M246012</link>
    <description>&lt;P&gt;Have you tried not escaping you " with \" in your command line arguments?&lt;/P&gt;</description>
    <pubDate>Tue, 09 Apr 2024 19:44:35 GMT</pubDate>
    <dc:creator>joseomjr</dc:creator>
    <dc:date>2024-04-09T19:44:35Z</dc:date>
    <item>
      <title>Curl with ExecuteStreamCommand</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Curl-with-ExecuteStreamCommand/m-p/382189#M244515</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarioFRS_0-1705325180917.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/39434iA111312D970432E8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarioFRS_0-1705325180917.png" alt="MarioFRS_0-1705325180917.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Command Arguments&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;--location;--insecure;--request;POST;--header;'Content-Type: application/json';--data-raw;'{\"username\": \"xxx\",\"password\": \"xxx\"}';https://99.9.99.999:8091/auth&lt;/PRE&gt;&lt;P&gt;If i run the processor, i get the following output&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV class="flowfile-header"&gt;&lt;STRONG&gt;Attribute Values&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="attribute-detail"&gt;&lt;DIV class="attribute-name"&gt;execution.command&lt;/DIV&gt;&lt;DIV class="attribute-value"&gt;curl&lt;/DIV&gt;&lt;DIV class="clear"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="attribute-detail"&gt;&lt;DIV class="attribute-name"&gt;execution.command.args&lt;/DIV&gt;&lt;DIV class="attribute-value"&gt;--location;--insecure;--request;POST;--header;'Content-Type: application/json';--data-raw;'{\"username\": \"xxx\",\"password\": \"xxx\"}';&lt;A href="https://99.9.99.999:8091/auth" target="_blank" rel="noopener"&gt;https://99.9.99.999:8091/auth&lt;/A&gt;&lt;/DIV&gt;&lt;DIV class="clear"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="attribute-detail"&gt;&lt;DIV class="attribute-name"&gt;execution.error&lt;/DIV&gt;&lt;DIV class="attribute-value"&gt;% 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&lt;/DIV&gt;&lt;DIV class="attribute-value"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="attribute-value"&gt;&lt;STRONG&gt;FlowFile Content&lt;/STRONG&gt;&lt;BR /&gt;Bad Auth Request: Expecting value: line 1 column 1 (char 0)&lt;/DIV&gt;&lt;DIV class="attribute-value"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="attribute-value"&gt;Does anyone have any idea how I can fix this? When I execute the command via the command line, I get the expected response.&lt;/DIV&gt;&lt;DIV class="attribute-value"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="attribute-value"&gt;Thanks&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 Jan 2024 13:35:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Curl-with-ExecuteStreamCommand/m-p/382189#M244515</guid>
      <dc:creator>MarioFRS</dc:creator>
      <dc:date>2024-01-15T13:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Curl with ExecuteStreamCommand</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Curl-with-ExecuteStreamCommand/m-p/386349#M246012</link>
      <description>&lt;P&gt;Have you tried not escaping you " with \" in your command line arguments?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 19:44:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Curl-with-ExecuteStreamCommand/m-p/386349#M246012</guid>
      <dc:creator>joseomjr</dc:creator>
      <dc:date>2024-04-09T19:44:35Z</dc:date>
    </item>
  </channel>
</rss>

