<?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 Getting 404 using axios call to rest api in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Getting-404-using-axios-call-to-rest-api/m-p/412568#M73032</link>
    <description>&lt;P&gt;I am trying to connect to splunk's rest api. In the command line when I curl -k &lt;A href="https://localhost:8089/services/auth/login"&gt;https://localhost:8089/services/auth/login&lt;/A&gt; --data-urlencode username=admin --data-urlencode password=pass. I get a response with a session key. But when I try &lt;BR /&gt;
  axios.get({&lt;BR /&gt;
      url: '&lt;A href="https://localhost:8089/services/auth/login"&gt;https://localhost:8089/services/auth/login&lt;/A&gt;'&lt;BR /&gt;
      data: {&lt;BR /&gt;
        username: 'admin',&lt;BR /&gt;
        password: 'pass'&lt;BR /&gt;
      }&lt;BR /&gt;
    })&lt;BR /&gt;
.....&lt;/P&gt;

&lt;P&gt;I get a 404 status back&lt;/P&gt;</description>
    <pubDate>Mon, 20 Aug 2018 00:49:33 GMT</pubDate>
    <dc:creator>hgrbble1</dc:creator>
    <dc:date>2018-08-20T00:49:33Z</dc:date>
    <item>
      <title>Getting 404 using axios call to rest api</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-404-using-axios-call-to-rest-api/m-p/412568#M73032</link>
      <description>&lt;P&gt;I am trying to connect to splunk's rest api. In the command line when I curl -k &lt;A href="https://localhost:8089/services/auth/login"&gt;https://localhost:8089/services/auth/login&lt;/A&gt; --data-urlencode username=admin --data-urlencode password=pass. I get a response with a session key. But when I try &lt;BR /&gt;
  axios.get({&lt;BR /&gt;
      url: '&lt;A href="https://localhost:8089/services/auth/login"&gt;https://localhost:8089/services/auth/login&lt;/A&gt;'&lt;BR /&gt;
      data: {&lt;BR /&gt;
        username: 'admin',&lt;BR /&gt;
        password: 'pass'&lt;BR /&gt;
      }&lt;BR /&gt;
    })&lt;BR /&gt;
.....&lt;/P&gt;

&lt;P&gt;I get a 404 status back&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 00:49:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-404-using-axios-call-to-rest-api/m-p/412568#M73032</guid>
      <dc:creator>hgrbble1</dc:creator>
      <dc:date>2018-08-20T00:49:33Z</dc:date>
    </item>
  </channel>
</rss>

