fopen is usually FILE open, and I only use it when reading/writing to file system.??? I'm no Python pro... So it appears that you may be using the sdk incorrectly. Can you please show your code?
I'm using the index.php from the php sdk examples. Just following the docs at this point. I have copied settings.default.php to settings.local.php as is described using my login credentials.
Thanks for looking at this.
looking at splunkd.log this might be a ssl/tls error
02-10-2016 18:11:42.796 -0700 WARN HttpListener - Socket error from 127.0.0.1 while idling: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca
<h4 class="alert-heading">Examples Unconfigured.</h4> You are using the default name and password. Please copy the <strong>settings.default.php</strong> file in this directory to <strong>settings.local.php</strong> and edit it appropriately. <h4 class="alert-heading">Login Failed.</h4> Reason: <code><?php echo htmlspecialchars($loginFailReason); ?></code>