title: Uable to connect Splunk using java sdk
body: <p>I am trying to connect Splunk using Java SDK but i am getting Connection Refused Exception.</p>
  
  <pre><code>     Map&lt;String, Object&gt; connectionArgs = new HashMap&lt;String, Object&gt;();
       connectionArgs.put("host", "mydomain.com");
       connectionArgs.put("username", "admin");
       connectionArgs.put("password", "passxxx");
       connectionArgs.put("port", 8089);
       connectionArgs.put("scheme", "https");
       Service splunkService = Service.connect(connectionArgs); 
  </code></pre>
  
  <p>When I am using the browser with the above url i, e, <a href="https://mydomain.com" rel="nofollow">https://mydomain.com</a> i am able to login with the above credentials but through Java sdk i am not able to connect. I debugged the code, In HttpService.java class the URL is getting constructed as 
  <a href="https://mydomain.com:8089/services/auth/login" rel="nofollow">https://mydomain.com:8089/services/auth/login</a></p>
  
  <p>I am not getting why the URL is getting constructed like this. Kindly help me out in resolving the issue at the earliest. Thanks</p>