<?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 header using curl command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-pass-header-using-curl-command/m-p/558804#M158765</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236212"&gt;@vik&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you are using &lt;A href="https://splunkbase.splunk.com/app/4172/#/overview" target="_self"&gt;this&lt;/A&gt; app.&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| curl headers="{'X-User-ID':'myuserid'}" url="https://domainname/getstatusData?startTime=2021-07-07%2008:50:00&amp;amp;endTime=2021-07-07%2012:50:00&amp;amp;authe..."&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For more:&amp;nbsp;&lt;A href="https://github.com/bmacher/splunk-curl-command" target="_blank"&gt;https://github.com/bmacher/splunk-curl-command&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jul 2021 06:56:24 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2021-07-09T06:56:24Z</dc:date>
    <item>
      <title>Unable to pass header using curl command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-pass-header-using-curl-command/m-p/558768#M158759</link>
      <description>&lt;P&gt;I am trying to hit a URL from splunk using curl command. The end point needs an header to be passed with the key values as "X-User-ID". I am passing the value as below but I still get an error message stating that the value is not passed in the header. Can you help me understand if my query is incorrect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;| eval header="{\"X-User-ID\": \"myuserid\"}" | curl method=get headerfield=header uri="&lt;A href="https://domainname/getstatusData?startTime=2021-07-07%2008:50:00&amp;amp;endTime=2021-07-07%2012:50:00&amp;amp;authenticationBearer=na" target="_blank" rel="noopener"&gt;https://domainname/getstatusData?startTime=2021-07-07%2008:50:00&amp;amp;endTime=2021-07-07%2012:50:00&amp;amp;authenticationBearer=na&lt;/A&gt;" debug=true&lt;/P&gt;&lt;P&gt;curl message:&amp;nbsp;&lt;SPAN&gt;"message":"Missing request header \u0027X-User-ID\u0027 for method parameter of type String"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am able to invoke this from POSTMAN without any issues.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 22:34:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-pass-header-using-curl-command/m-p/558768#M158759</guid>
      <dc:creator>vik</dc:creator>
      <dc:date>2021-07-08T22:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to pass header using curl command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-pass-header-using-curl-command/m-p/558804#M158765</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236212"&gt;@vik&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you are using &lt;A href="https://splunkbase.splunk.com/app/4172/#/overview" target="_self"&gt;this&lt;/A&gt; app.&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| curl headers="{'X-User-ID':'myuserid'}" url="https://domainname/getstatusData?startTime=2021-07-07%2008:50:00&amp;amp;endTime=2021-07-07%2012:50:00&amp;amp;authe..."&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For more:&amp;nbsp;&lt;A href="https://github.com/bmacher/splunk-curl-command" target="_blank"&gt;https://github.com/bmacher/splunk-curl-command&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 06:56:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-pass-header-using-curl-command/m-p/558804#M158765</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-07-09T06:56:24Z</dc:date>
    </item>
  </channel>
</rss>

