This works on my google app engine, but on my development server, I get this error:
Warning: file_get_contents(https://website.com): failed to open stream: Unsupported SSL context options are set. The following options are present, but have been ignored: allow_self_signed
<br />
SSL certificate error - certificate invalid or non-existent, [Errno 8] _ssl.c:507: EOF occurred in violation of protocol in
$context = stream_context_create(
array(
'ssl' => array('verify_peer' => false, 'allow_self_signed' => true),
'http' => array( 'method' => 'GET' )
)
);
$call_url = file_get_contents('https://website.com', false, $context);
I am using runtime: php55
. Does anyone know why this is occurring, why it works on App Engine, and what I can do to fix this error?
bug report: https://code.google.com/p/googleappengine/issues/detail?id=11772