<?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 curl command not working may be a format issue - webtools addon in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/curl-command-not-working-may-be-a-format-issue-webtools-addon/m-p/503865#M62098</link>
    <description>&lt;P&gt;Unable to run curl from Splunk search.&lt;/P&gt;&lt;P&gt;Working fine from ssh session:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-bash-4.2$ curl -k -u admin:xxxxxxx https://localhost:8089/servicesNS/nobody/SA-ITOA/maintenance_services_interface/maintenance_calendar -X POST -H "Content-Type:application/json" -d '{"title":"TEST MW","start_time":"1591814852.152","end_time":"1592814852.364","objects": [{"object_type": "entity", "_key": "e7002b20-6b38-49ec-ad2a-29a0be0d2d65"}]}'&lt;BR /&gt;&lt;BR /&gt;{"_key": "5ee1d57e5575d4d6ee5710d1"}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But below search throws error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=_internal&lt;BR /&gt;| head 1&lt;BR /&gt;| eval header="{\"content-type\":\"application/json\"}"&lt;BR /&gt;| eval data="{\"title\":\"TEST MW\",\"start_time\":\"1591814852.152\",\"end_time\":\"1592814852.364\",\"objects\":[{\"object_type\":\"entity\",\"_key\":\"e7002b20-6b38-49ec-ad2a-29a0be0d2d65\"}]}"&lt;BR /&gt;| curl method=post uri=https://localhost:8089/servicesNS/nobody/SA-ITOA/maintenance_services_interface/maintenance_calendar splunkauth=true debug=true headerfield=header datafield=data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jun 2020 07:09:00 GMT</pubDate>
    <dc:creator>ansif</dc:creator>
    <dc:date>2020-06-11T07:09:00Z</dc:date>
    <item>
      <title>curl command not working may be a format issue - webtools addon</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/curl-command-not-working-may-be-a-format-issue-webtools-addon/m-p/503865#M62098</link>
      <description>&lt;P&gt;Unable to run curl from Splunk search.&lt;/P&gt;&lt;P&gt;Working fine from ssh session:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-bash-4.2$ curl -k -u admin:xxxxxxx https://localhost:8089/servicesNS/nobody/SA-ITOA/maintenance_services_interface/maintenance_calendar -X POST -H "Content-Type:application/json" -d '{"title":"TEST MW","start_time":"1591814852.152","end_time":"1592814852.364","objects": [{"object_type": "entity", "_key": "e7002b20-6b38-49ec-ad2a-29a0be0d2d65"}]}'&lt;BR /&gt;&lt;BR /&gt;{"_key": "5ee1d57e5575d4d6ee5710d1"}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But below search throws error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=_internal&lt;BR /&gt;| head 1&lt;BR /&gt;| eval header="{\"content-type\":\"application/json\"}"&lt;BR /&gt;| eval data="{\"title\":\"TEST MW\",\"start_time\":\"1591814852.152\",\"end_time\":\"1592814852.364\",\"objects\":[{\"object_type\":\"entity\",\"_key\":\"e7002b20-6b38-49ec-ad2a-29a0be0d2d65\"}]}"&lt;BR /&gt;| curl method=post uri=https://localhost:8089/servicesNS/nobody/SA-ITOA/maintenance_services_interface/maintenance_calendar splunkauth=true debug=true headerfield=header datafield=data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 07:09:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/curl-command-not-working-may-be-a-format-issue-webtools-addon/m-p/503865#M62098</guid>
      <dc:creator>ansif</dc:creator>
      <dc:date>2020-06-11T07:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: curl command not working may be a format issue - webtools addon</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/curl-command-not-working-may-be-a-format-issue-webtools-addon/m-p/503883#M62100</link>
      <description>&lt;P&gt;have you tried to URLENCODE your message?&lt;/P&gt;&lt;P&gt;have you tried validating your json?&lt;/P&gt;&lt;P&gt;The error is saying that the fields are improperly defined. &amp;nbsp;Most likely due to bad encoding or escaping.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 08:56:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/curl-command-not-working-may-be-a-format-issue-webtools-addon/m-p/503883#M62100</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2020-06-11T08:56:38Z</dc:date>
    </item>
  </channel>
</rss>

