@@ -43,6 +43,8 @@ curl_setopt ($session, CURLOPT_POST, true);
4343curl_setopt ($session, CURLOPT_POSTFIELDS, $params);
4444// Tell curl not to return headers, but do return the response
4545curl_setopt($session, CURLOPT_HEADER, false);
46+ // Tell PHP not to use SSLv3 (instead opting for TLS)
47+ curl_setopt($curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2);
4648curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
4749
4850// obtain response
@@ -97,6 +99,8 @@ curl_setopt ($session, CURLOPT_POST, true);
9799curl_setopt ($session, CURLOPT_POSTFIELDS, $params);
98100// Tell curl not to return headers, but do return the response
99101curl_setopt($session, CURLOPT_HEADER, false);
102+ // Tell PHP not to use SSLv3 (instead opting for TLS)
103+ curl_setopt($curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2);
100104curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
101105
102106// obtain response
@@ -149,6 +153,8 @@ curl_setopt ($session, CURLOPT_POSTFIELDS, $params);
149153
150154// Tell curl not to return headers, but do return the response
151155curl_setopt($session, CURLOPT_HEADER, false);
156+ // Tell PHP not to use SSLv3 (instead opting for TLS)
157+ curl_setopt($curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2);
152158curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
153159
154160// obtain response
0 commit comments