Showing results for 
Show  only  | Search instead for 
Did you mean: 

Openssl Issue?

Is anyone else having issues requesting https resources?


I am getting 500 - Internal server error with this script:

<? echo file_get_contents(''); ?>

This works fine:

 <? echo file_get_contents(''); ?>

I get the same thing when using CURL:

$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, '');
curl_setopt ($ch, CURLOPT_TIMEOUT, 120);
echo curl_exec ($ch);
curl_close ($ch);

Again, always works.


I've had periods where it works, but https requests it mostly fail.

I've caught a verbose response from CURL a few times also:

URL = 
* Rebuilt URL to: * Trying * TCP_NODELAY set * Connected to ( port 443 (#0) * ALPN, offering http/1.1 * Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH * successfully set certificate verify locations: * CAfile: C:\Program Files (x86)\Parallels\Plesk\Additional\PHPSettings\cacert.pem CApath: none * OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to * Closing connection 0

Tech support told me it was my scripting issue, but I would argue a file_get_contents request (wrapped in a try..catch block even) should never cause a 500 error!