title: CURL SSL3 Empty Reply from server Error No: 52
body: <p>I've searched almost every thread but nothing happened. I'm trying to connect an SSL3 oracle web service with PHP. I've tried soapclient and nusoap but nothing worked. Also, i've added ssl_method to  SOAP_SSL_METHOD_SSLv3 but still got the error.</p>
  
  <p>I've switched to curl and added the ssl version to 3, added header with expect, added mozilla.pem file and also tried with the clients certificate with the option <code>CURLOPT_CAINFO</code>. Setting <code>CURLOPT_SSL_VERIFYPEER</code> worked for the hello but I still get the same error.</p>
  
  <p>The code is below. Any help would be appreciated.</p>
  
  <pre><code>$query= 'http://somesecretclienturl.com/?with=some&amp;parameters=here';        
  $ch = curl_init();
  curl_setopt($ch,CURLOPT_URL,$query);
  curl_setopt($ch,CURLOPT_TIMEOUT,60);
  curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
  curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
  curl_setopt($ch, CURLOPT_SSLVERSION, 3);
  $result = curl_exec($ch);
  if(empty($result)){
      print_r(curl_error($ch));
  }else{ 
      print_r('success'); //Never came to this point
  }
  curl_close($ch);
  </code></pre>
  
  <p>Note: I can connect to web service and get a response when i try:
  <code>curl -i http://somesecretclienturl.com/?with=some&amp;parameters=here</code> from terminal.</p>