<?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 Receiving an HTTP 303 (See Other) response from Splunk Server using the API in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Receiving-an-HTTP-303-See-Other-response-from-Splunk-Server/m-p/82013#M16944</link>
    <description>&lt;P&gt;I'm trying to communicate with Splunk via the API and I'm getting HTTP 303 errors when I attempt to get the session key. Usernames and passwords have been purposely filled with "user" and "pass". Example is based off of the &lt;A href="http://www.splunk.com/base/Documentation/latest/Developer/RESTCreateSearch" rel="nofollow"&gt;Splunk documentation&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;curl -u user:pass -k &lt;A href="https://ourserver.host.com:8070/services/auth/login" rel="nofollow"&gt;https://ourserver.host.com:8070/services/auth/login&lt;/A&gt; -d"username=user&amp;amp;password=pass"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I get this back (cURL reports an HTTP status of 303 - See Other):&lt;BR /&gt;
&lt;CODE&gt;This resource can be found at &amp;lt;a href='https://ourserver.host.com:8000/en-US/services/auth/login'&amp;gt;https://ourserver.host.com:8070/en-US/services/auth/login&amp;lt;/a&amp;gt;.&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;So I try this:&lt;BR /&gt;
&lt;CODE&gt;curl -u user:pass -k &lt;A href="https://ourserver.host.com:8070/en-US/services/auth/login" rel="nofollow"&gt;https://ourserver.host.com:8070/en-US/services/auth/login&lt;/A&gt; -d"username=user&amp;amp;password=pass"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;...and I get a 404.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&amp;gt;
&amp;lt;!-- 
   This is a static HTML string template to render errors.  To edit this
   template, see appserver/mrsparkle/lib/error.py. 
--&amp;gt;

&amp;lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:splunk="http://www.splunk.com/xhtml-extensions/1.0" xml:lang="en"&amp;gt;
&amp;lt;head&amp;gt;
   &amp;lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&amp;gt;
   &amp;lt;title&amp;gt;The path '/en-US/services/auth/login' was not found. - Splunk&amp;lt;/title&amp;gt;
   &amp;lt;style&amp;gt;
[...]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 15 Apr 2011 05:02:08 GMT</pubDate>
    <dc:creator>johndeer430</dc:creator>
    <dc:date>2011-04-15T05:02:08Z</dc:date>
    <item>
      <title>Receiving an HTTP 303 (See Other) response from Splunk Server using the API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Receiving-an-HTTP-303-See-Other-response-from-Splunk-Server/m-p/82013#M16944</link>
      <description>&lt;P&gt;I'm trying to communicate with Splunk via the API and I'm getting HTTP 303 errors when I attempt to get the session key. Usernames and passwords have been purposely filled with "user" and "pass". Example is based off of the &lt;A href="http://www.splunk.com/base/Documentation/latest/Developer/RESTCreateSearch" rel="nofollow"&gt;Splunk documentation&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;curl -u user:pass -k &lt;A href="https://ourserver.host.com:8070/services/auth/login" rel="nofollow"&gt;https://ourserver.host.com:8070/services/auth/login&lt;/A&gt; -d"username=user&amp;amp;password=pass"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I get this back (cURL reports an HTTP status of 303 - See Other):&lt;BR /&gt;
&lt;CODE&gt;This resource can be found at &amp;lt;a href='https://ourserver.host.com:8000/en-US/services/auth/login'&amp;gt;https://ourserver.host.com:8070/en-US/services/auth/login&amp;lt;/a&amp;gt;.&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;So I try this:&lt;BR /&gt;
&lt;CODE&gt;curl -u user:pass -k &lt;A href="https://ourserver.host.com:8070/en-US/services/auth/login" rel="nofollow"&gt;https://ourserver.host.com:8070/en-US/services/auth/login&lt;/A&gt; -d"username=user&amp;amp;password=pass"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;...and I get a 404.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&amp;gt;
&amp;lt;!-- 
   This is a static HTML string template to render errors.  To edit this
   template, see appserver/mrsparkle/lib/error.py. 
--&amp;gt;

&amp;lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:splunk="http://www.splunk.com/xhtml-extensions/1.0" xml:lang="en"&amp;gt;
&amp;lt;head&amp;gt;
   &amp;lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&amp;gt;
   &amp;lt;title&amp;gt;The path '/en-US/services/auth/login' was not found. - Splunk&amp;lt;/title&amp;gt;
   &amp;lt;style&amp;gt;
[...]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Apr 2011 05:02:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Receiving-an-HTTP-303-See-Other-response-from-Splunk-Server/m-p/82013#M16944</guid>
      <dc:creator>johndeer430</dc:creator>
      <dc:date>2011-04-15T05:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving an HTTP 303 (See Other) response from Splunk Server using the API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Receiving-an-HTTP-303-See-Other-response-from-Splunk-Server/m-p/82014#M16945</link>
      <description>&lt;P&gt;It looks like you're hitting the SplunkWeb port,  not the management port (aka Splunkd port). &lt;/P&gt;

&lt;P&gt;If you dont know what your management port is, login as the admin user,  and go to Manager &amp;gt; System Settings &amp;gt; General Settings. &lt;/P&gt;

&lt;P&gt;the default value is 8089, but since your SplunkWeb port is 8070 instead of 8000,  im guessing the other one was changed too.  &lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2011 05:11:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Receiving-an-HTTP-303-See-Other-response-from-Splunk-Server/m-p/82014#M16945</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2011-04-15T05:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Receiving an HTTP 303 (See Other) response from Splunk Server using the API</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Receiving-an-HTTP-303-See-Other-response-from-Splunk-Server/m-p/82015#M16946</link>
      <description>&lt;P&gt;This solved my issue. Connecting to management port rather that the WEBUI port.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 07:03:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Receiving-an-HTTP-303-See-Other-response-from-Splunk-Server/m-p/82015#M16946</guid>
      <dc:creator>nchaturvedi</dc:creator>
      <dc:date>2019-05-15T07:03:54Z</dc:date>
    </item>
  </channel>
</rss>

