title: Php curl set ssl version
body: <p>Since 3 days I can't connect to the paypal sandbox. I found out that they maybe dissabled the support for SSLv3. So i tried to change the SSL Version in my curl Request by setting :</p>
  
  <pre><code>curl_setopt($curl, CURLOPT_SSLVERSION,1); # 1 = TLSv1
  </code></pre>
  
  <p>But it still give me the same error :</p>
  
  <pre><code>error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
  </code></pre>
  
  <p>Any idea why the script is still using SSLv3 ?</p>
  
  <p>I am using php 5.5 and the following curl version ( currently asking at my hoster [ managed hosting at 1&amp;1 ] to upgrade to a newer version)</p>
  
  <p>curl 7.21.0 (i486-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.15 libssh2/1.2.6
  Protocols: dict file ftp ftps http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp 
  Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz </p>