<?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>topic Re: unable to pass URL using curl command in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/unable-to-pass-URL-using-curl-command/m-p/584056#M102837</link>
    <description>&lt;P&gt;I am using the following to add data. I am not supposed to share the data here so i have given one example.&lt;/P&gt;&lt;P&gt;curl &lt;A href="https://aa-abc-abcd-data-abc.com:1234/abc/abc/raw" target="_blank"&gt;https://aa-abc-abcd-data-abc.com:1234/abc/abc/raw&lt;/A&gt; -H "Authorization: Splunk abc-hwhuhw1-dshjhsj-whdedg" -d {\"DATA_SET\":{\"NUMBER\":\"75\",\"TASK_URL\":\"&lt;A href="https://abc.com/xyz/task/abcabc/\" target="_blank"&gt;https://abc.com/xyz/task/abcabc/\&lt;/A&gt;",\"DATA_URL\":\"&lt;A href="https://abc.com/xyz/source/dataName/com.abc.team.data.DATA/\" target="_blank"&gt;https://abc.com/xyz/source/dataName/com.abc.team.data.DATA/\&lt;/A&gt;",\"PARTS\":[\"NAME\":\"abc.abc.abc\",\"SUB\":\"12345-\"]}}&lt;/P&gt;&lt;P&gt;The URL has some issue.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Feb 2022 08:03:02 GMT</pubDate>
    <dc:creator>anooshac</dc:creator>
    <dc:date>2022-02-08T08:03:02Z</dc:date>
    <item>
      <title>unable to pass URL using curl command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/unable-to-pass-URL-using-curl-command/m-p/584042#M102835</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am passing some data in JSON format to Splunk using curl. When i try to pass the URL it gives an error " nested brace in URL position 19". Not getting where went wrong even though all the braces are proper. Can anyone help me in this?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 06:43:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/unable-to-pass-URL-using-curl-command/m-p/584042#M102835</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2022-02-08T06:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: unable to pass URL using curl command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/unable-to-pass-URL-using-curl-command/m-p/584046#M102836</link>
      <description>&lt;P&gt;Well, something must be wrong if you're getting an error. We can't know what it is without more details about your curl invocation.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 07:18:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/unable-to-pass-URL-using-curl-command/m-p/584046#M102836</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-02-08T07:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: unable to pass URL using curl command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/unable-to-pass-URL-using-curl-command/m-p/584056#M102837</link>
      <description>&lt;P&gt;I am using the following to add data. I am not supposed to share the data here so i have given one example.&lt;/P&gt;&lt;P&gt;curl &lt;A href="https://aa-abc-abcd-data-abc.com:1234/abc/abc/raw" target="_blank"&gt;https://aa-abc-abcd-data-abc.com:1234/abc/abc/raw&lt;/A&gt; -H "Authorization: Splunk abc-hwhuhw1-dshjhsj-whdedg" -d {\"DATA_SET\":{\"NUMBER\":\"75\",\"TASK_URL\":\"&lt;A href="https://abc.com/xyz/task/abcabc/\" target="_blank"&gt;https://abc.com/xyz/task/abcabc/\&lt;/A&gt;",\"DATA_URL\":\"&lt;A href="https://abc.com/xyz/source/dataName/com.abc.team.data.DATA/\" target="_blank"&gt;https://abc.com/xyz/source/dataName/com.abc.team.data.DATA/\&lt;/A&gt;",\"PARTS\":[\"NAME\":\"abc.abc.abc\",\"SUB\":\"12345-\"]}}&lt;/P&gt;&lt;P&gt;The URL has some issue.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 08:03:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/unable-to-pass-URL-using-curl-command/m-p/584056#M102837</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2022-02-08T08:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: unable to pass URL using curl command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/unable-to-pass-URL-using-curl-command/m-p/584059#M102838</link>
      <description>&lt;P&gt;Of course I didn't expect full raw data due to privacy issues &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you're typing this into shell, remember that you're hitting shell's expansion first.&lt;/P&gt;&lt;P&gt;See for yourself&lt;/P&gt;&lt;PRE&gt;$ echo {\"DATA_SET\":{\"NUMBER\":\"75\",\"TASK_URL\":\"https://abc.com/xyz/task/abcabc/\",\"DATA_URL\":\"https://abc.com/xyz/source/dataName/com.abc.team.data.DATA/\",\"PARTS\":[\"NAME\":\"abc.abc.abc\",\"SUB\":\"12345-\"]}}&lt;BR /&gt;{"DATA_SET":"NUMBER":"75"} {"DATA_SET":"TASK_URL":"https://abc.com/xyz/task/abcabc/"} {"DATA_SET":"DATA_URL":"https://abc.com/xyz/source/dataName/com.abc.team.data.DATA/"} {"DATA_SET":"PARTS":["NAME":"abc.abc.abc"} {"DATA_SET":"SUB":"12345-"]}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;That's probably not what you want.&lt;/P&gt;&lt;P&gt;You should at least surround whole parameter to -d with quotes.&lt;/P&gt;&lt;P&gt;And next time, try curl with -v to easier see whether the issue is with the curl invocation syntax and curl won't even try to connect to the server in the first place or is it with the parameters/data syntax so that the error is returned by the server.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 08:21:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/unable-to-pass-URL-using-curl-command/m-p/584059#M102838</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-02-08T08:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: unable to pass URL using curl command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/unable-to-pass-URL-using-curl-command/m-p/584103#M102841</link>
      <description>&lt;P&gt;I removed DATA_SET. Tried executing with -v and it says {"text":"The requested URL was not found on this server.","code":404}. I guess it searching for the URL in the server mentioned in curl command.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 12:23:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/unable-to-pass-URL-using-curl-command/m-p/584103#M102841</guid>
      <dc:creator>anooshac</dc:creator>
      <dc:date>2022-02-08T12:23:34Z</dc:date>
    </item>
  </channel>
</rss>

