<?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: Curl with dynamic url not working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Curl-with-dynamic-url-not-working/m-p/679649#M232341</link>
    <description>&lt;P&gt;I have a search query S1 which gives me a result&amp;nbsp; X with numeric values (203, 204, 205) and&amp;nbsp; I am able to populate this in a table. Now I want to bind this number with a url to create a dynamic url specific to that number.&lt;BR /&gt;For example URL is &lt;A href="https://cnac.ca/data/json/npas.json" target="_blank"&gt;https://cnac.ca/data/json/npas.json&lt;/A&gt;&amp;nbsp;&amp;nbsp;and from S1 query i get the result value as 203, I want to create URL : &lt;A href="https://cnac.ca/data/json/npa203.json" target="_blank"&gt;https://cnac.ca/data/json/npa203.json&lt;/A&gt; and want to hit this to get the response back to get the required data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this I am using curl command, but when I try to create a dynamic URL and pass it in curl command it doesn't accept it.&lt;BR /&gt;&lt;BR /&gt;Please suggest.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2024 20:31:57 GMT</pubDate>
    <dc:creator>palak_247</dc:creator>
    <dc:date>2024-03-05T20:31:57Z</dc:date>
    <item>
      <title>Curl with dynamic url not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Curl-with-dynamic-url-not-working/m-p/679626#M232337</link>
      <description>&lt;P&gt;I am trying to make a curl request to a direct json link and fetch the result. When i hardcode the URL it works fine but my url is dynamic and gets created based on the search result of another query.&lt;/P&gt;&lt;P&gt;I can see my curl command is correct but it doesnt give proper output&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 18:13:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Curl-with-dynamic-url-not-working/m-p/679626#M232337</guid>
      <dc:creator>palak_247</dc:creator>
      <dc:date>2024-03-05T18:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Curl with dynamic url not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Curl-with-dynamic-url-not-working/m-p/679631#M232338</link>
      <description>&lt;P&gt;Please can you provide a more detailed example of the issue you are facing (anonymising sensitive information such as ip addresses etc.)&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 18:48:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Curl-with-dynamic-url-not-working/m-p/679631#M232338</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-03-05T18:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Curl with dynamic url not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Curl-with-dynamic-url-not-working/m-p/679649#M232341</link>
      <description>&lt;P&gt;I have a search query S1 which gives me a result&amp;nbsp; X with numeric values (203, 204, 205) and&amp;nbsp; I am able to populate this in a table. Now I want to bind this number with a url to create a dynamic url specific to that number.&lt;BR /&gt;For example URL is &lt;A href="https://cnac.ca/data/json/npas.json" target="_blank"&gt;https://cnac.ca/data/json/npas.json&lt;/A&gt;&amp;nbsp;&amp;nbsp;and from S1 query i get the result value as 203, I want to create URL : &lt;A href="https://cnac.ca/data/json/npa203.json" target="_blank"&gt;https://cnac.ca/data/json/npa203.json&lt;/A&gt; and want to hit this to get the response back to get the required data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this I am using curl command, but when I try to create a dynamic URL and pass it in curl command it doesn't accept it.&lt;BR /&gt;&lt;BR /&gt;Please suggest.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 20:31:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Curl-with-dynamic-url-not-working/m-p/679649#M232341</guid>
      <dc:creator>palak_247</dc:creator>
      <dc:date>2024-03-05T20:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Curl with dynamic url not working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Curl-with-dynamic-url-not-working/m-p/679674#M232352</link>
      <description>&lt;P&gt;Standard &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/" target="_blank" rel="noopener"&gt;SPL&lt;/A&gt; doesn't have a curl command. &amp;nbsp;You should ask the developer who developed the app that gives you curl, or consult its manual to find out the correct syntax and any limitations it may have. (Given that "Apps and Add-ons" forum is gone from this board,&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Dev/bd-p/dev-splunk-platform" target="_blank"&gt;Splunk Dev&lt;/A&gt;&amp;nbsp;might be a successor.)&lt;/P&gt;&lt;P&gt;Also, you talk about "dynamic url" as if it is a Splunk feature. &amp;nbsp;It is not. &amp;nbsp;Maybe you can illustrate your SPL snippet so volunteers can understand precisely what you are referring to?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 23:30:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Curl-with-dynamic-url-not-working/m-p/679674#M232352</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2024-03-05T23:30:58Z</dc:date>
    </item>
  </channel>
</rss>

