<?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 Instruct Splunk PHP SDK to connect via HTTP not HTTPS in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Instruct-Splunk-PHP-SDK-to-connect-via-HTTP-not-HTTPS/m-p/432381#M75648</link>
    <description>&lt;P&gt;I am having an issue connecting to a Splunk search head with the Splunk PHP SDK:&lt;BR /&gt;
&lt;A href="http://x.x.x.x"&gt;http://x.x.x.x&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I get the error below. It is attempt to connect to &lt;A href="https://." target="test_blank"&gt;https://.&lt;/A&gt;. and then gives me an SSL error. When I attempt to connect to &lt;A href="https://x.x.x.x"&gt;https://x.x.x.x&lt;/A&gt; through my web browser it gives me a similar error so clearly I need to connect to this search head using http, not https.&lt;BR /&gt;
I cannot figure out how to tell the SDK to connect with http: instead of https. Help?&lt;/P&gt;

&lt;P&gt;PHP Fatal error:  Uncaught exception 'Splunk_ConnectException' with message 'SSL connect error' in /var/www/html/eventcount/src/SplunkIndexMonitor/Splunk/Splunk/Http.php:196&lt;BR /&gt;
Stack trace:&lt;/P&gt;

&lt;H1&gt;0 /var/www/html/eventcount/src/SplunkIndexMonitor/Splunk/Splunk/Http.php(94): Splunk_Http-&amp;gt;requestWithCurl('post', '&lt;A href="https://x.x.x.."&gt;https://x.x.x..&lt;/A&gt;.', Array, 'username=abc&amp;amp;pa...')&lt;/H1&gt;

&lt;H1&gt;1 /var/www/html/eventcount/src/SplunkIndexMonitor/Splunk/Splunk/Http.php(45): Splunk_Http-&amp;gt;request('post', '&lt;A href="https://x.x.x.."&gt;https://x.x.x..&lt;/A&gt;.', Array, 'username=abc&amp;amp;pa...')&lt;/H1&gt;

&lt;H1&gt;2 /var/www/html/eventcount/src/SplunkIndexMonitor/Splunk/Splunk/Context.php(94): Splunk_Http-&amp;gt;post('&lt;A href="https://x.x.x.."&gt;https://x.x.x..&lt;/A&gt;.', Array)&lt;/H1&gt;

&lt;H1&gt;3 /var/www/html/eventcount/src/SplunkIndexMonitor/abc-prod04-run.php(127): Splunk_Context-&amp;gt;login()&lt;/H1&gt;

&lt;H1&gt;4 {main}&lt;/H1&gt;

&lt;P&gt;thrown in /var/www/html/eventcount/src/SplunkIndexMonitor/Splunk/Splunk/Http.php on line 196&lt;/P&gt;</description>
    <pubDate>Thu, 14 Mar 2019 17:46:59 GMT</pubDate>
    <dc:creator>EricLloyd79</dc:creator>
    <dc:date>2019-03-14T17:46:59Z</dc:date>
    <item>
      <title>Instruct Splunk PHP SDK to connect via HTTP not HTTPS</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Instruct-Splunk-PHP-SDK-to-connect-via-HTTP-not-HTTPS/m-p/432381#M75648</link>
      <description>&lt;P&gt;I am having an issue connecting to a Splunk search head with the Splunk PHP SDK:&lt;BR /&gt;
&lt;A href="http://x.x.x.x"&gt;http://x.x.x.x&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I get the error below. It is attempt to connect to &lt;A href="https://." target="test_blank"&gt;https://.&lt;/A&gt;. and then gives me an SSL error. When I attempt to connect to &lt;A href="https://x.x.x.x"&gt;https://x.x.x.x&lt;/A&gt; through my web browser it gives me a similar error so clearly I need to connect to this search head using http, not https.&lt;BR /&gt;
I cannot figure out how to tell the SDK to connect with http: instead of https. Help?&lt;/P&gt;

&lt;P&gt;PHP Fatal error:  Uncaught exception 'Splunk_ConnectException' with message 'SSL connect error' in /var/www/html/eventcount/src/SplunkIndexMonitor/Splunk/Splunk/Http.php:196&lt;BR /&gt;
Stack trace:&lt;/P&gt;

&lt;H1&gt;0 /var/www/html/eventcount/src/SplunkIndexMonitor/Splunk/Splunk/Http.php(94): Splunk_Http-&amp;gt;requestWithCurl('post', '&lt;A href="https://x.x.x.."&gt;https://x.x.x..&lt;/A&gt;.', Array, 'username=abc&amp;amp;pa...')&lt;/H1&gt;

&lt;H1&gt;1 /var/www/html/eventcount/src/SplunkIndexMonitor/Splunk/Splunk/Http.php(45): Splunk_Http-&amp;gt;request('post', '&lt;A href="https://x.x.x.."&gt;https://x.x.x..&lt;/A&gt;.', Array, 'username=abc&amp;amp;pa...')&lt;/H1&gt;

&lt;H1&gt;2 /var/www/html/eventcount/src/SplunkIndexMonitor/Splunk/Splunk/Context.php(94): Splunk_Http-&amp;gt;post('&lt;A href="https://x.x.x.."&gt;https://x.x.x..&lt;/A&gt;.', Array)&lt;/H1&gt;

&lt;H1&gt;3 /var/www/html/eventcount/src/SplunkIndexMonitor/abc-prod04-run.php(127): Splunk_Context-&amp;gt;login()&lt;/H1&gt;

&lt;H1&gt;4 {main}&lt;/H1&gt;

&lt;P&gt;thrown in /var/www/html/eventcount/src/SplunkIndexMonitor/Splunk/Splunk/Http.php on line 196&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 17:46:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Instruct-Splunk-PHP-SDK-to-connect-via-HTTP-not-HTTPS/m-p/432381#M75648</guid>
      <dc:creator>EricLloyd79</dc:creator>
      <dc:date>2019-03-14T17:46:59Z</dc:date>
    </item>
  </channel>
</rss>

