Permalink
Switch branches/tags
Nothing to show
Find file Copy path
1a22168 Dec 16, 2016
2 contributors

Users who have contributed to this file

@jaypatel512 @bluk
20 lines (14 sloc) 531 Bytes
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://tlstest.paypal.com/");
curl_setopt($ch, CURLOPT_CAINFO, dirname(__FILE__) . '/cacert.pem');
// Some environments may be capable of TLS 1.2 but it is not in their list of defaults so need the SSL version option to be set.
curl_setopt($ch, CURLOPT_SSLVERSION, 6);
curl_exec($ch);
echo "\n";
if ($err = curl_error($ch)) {
var_dump($err);
echo "DEBUG INFORMATION:\n###########\n";
echo "CURL VERSION:\n";
echo json_encode(curl_version(), JSON_PRETTY_PRINT);
}