<?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 webaddons curl json data in Feedback</title>
    <link>https://community.splunk.com/t5/Feedback/webaddons-curl-json-data/m-p/747954#M552</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;When i post a json data and the data is an object, it doesn't post this data in json format, it post the data in the normal post format: variable=value.&lt;/P&gt;&lt;P&gt;How can we force it to post as json format?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="splunkwebaddons json.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39371i91063499870B96A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="splunkwebaddons json.png" alt="splunkwebaddons json.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jun 2025 18:03:11 GMT</pubDate>
    <dc:creator>mrnobita</dc:creator>
    <dc:date>2025-06-13T18:03:11Z</dc:date>
    <item>
      <title>webaddons curl json data</title>
      <link>https://community.splunk.com/t5/Feedback/webaddons-curl-json-data/m-p/747954#M552</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;When i post a json data and the data is an object, it doesn't post this data in json format, it post the data in the normal post format: variable=value.&lt;/P&gt;&lt;P&gt;How can we force it to post as json format?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="splunkwebaddons json.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39371i91063499870B96A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="splunkwebaddons json.png" alt="splunkwebaddons json.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 18:03:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Feedback/webaddons-curl-json-data/m-p/747954#M552</guid>
      <dc:creator>mrnobita</dc:creator>
      <dc:date>2025-06-13T18:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: webaddons curl json data</title>
      <link>https://community.splunk.com/t5/Feedback/webaddons-curl-json-data/m-p/747957#M553</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/264839"&gt;@mrnobita&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately this is not possible, the actual code behind this custom command uses python request and the payload is sent as the "data" parameter, and cannot be changed to the "json" parameter without modifying the source of the app.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/bentleymi/ta-webtools/blob/32481b43f1162c061ec48ad9b7464645f27ec428/TA-webtools/bin/curl.py#L85" target="_blank"&gt;https://github.com/bentleymi/ta-webtools/blob/32481b43f1162c061ec48ad9b7464645f27ec428/TA-webtools/bin/curl.py#L85&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;r = requests.post(uri,data=payload,verify=True,cert=cert,headers=headers,timeout=timeout)&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jun 2025 10:18:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Feedback/webaddons-curl-json-data/m-p/747957#M553</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-06-14T10:18:34Z</dc:date>
    </item>
  </channel>
</rss>

