Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing HTTPS link with php methods (file_get_contents, getimagesize)
    primarykey
    data
    text
    <p>I get a problem when I try to read some HTTPS url in my website.</p> <p>If I use "http", there is no problem (with file_get_contents and curl), but when I remplace "http" by "https", these methods don't work.</p> <p>I get some errors:</p> <pre><code>failed to open stream: operation failed occured Failed to enable crypto occured SSL operation failed with code 1. OpenSSL Error messages: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol </code></pre> <p>In my browser, all methods work: <a href="https://ssl10.ovh.net/~fyprbqhq/_perso/facebook.myclimb/test.php" rel="nofollow">https://ssl10.ovh.net/~fyprbqhq/_perso/facebook.myclimb/test.php</a> (Display should show "OK")</p> <p>In phpinfo() I got:</p> <pre><code>openssl OpenSSL support enabled OpenSSL Version OpenSSL 0.9.8c 05 Sep 2006 </code></pre> <p>If you have any ideas.</p> <p>Thanks for help.</p> <p>(Ps: get_headers() don't work too with https in my case)</p> <p>More info:</p> <p>file_get_contents:</p> <pre><code>$data = file_get_contents("https://ssl10.ovh.net/~fyprbqhq/_perso/facebook.myclimb/test.php"); </code></pre> <p>Curl:</p> <pre><code>$curl_handle = curl_init(); curl_setopt($curl_handle, CURLOPT_URL, "http://ssl10.ovh.net/~fyprbqhq/_perso/facebook.myclimb/test.php"); curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT,2); curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl_handle, CURLOPT_SSL_VERIFYPEER, false); $data = curl_exec($curl_handle); curl_close($curl_handle); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload