ssl option is set to CURL_SSLVERSION_TLSv1.

Some site disabled ssl v1 to 3 (ex: paypal).
This commit is contained in:
Laurent Destailleur 2014-11-18 17:13:08 +01:00
parent 01279edfc8
commit 1b24356e0f

View File

@ -683,7 +683,8 @@ function hash_call($methodName,$nvpStr)
exit;*/
curl_setopt($ch, CURLOPT_URL, $API_Endpoint);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_SSLVERSION, 3); // Force SSLv3
//curl_setopt($ch, CURLOPT_SSLVERSION, 3); // Force SSLv3
curl_setopt($ch, CURLOPT_SSLVERSION, 1); // Force TLSv1
//turning off the server and peer verification(TrustManager Concept).
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);