Skip to content

Instantly share code, notes, and snippets.

@gordonknoppe
Created November 14, 2014 22:38
Show Gist options
  • Save gordonknoppe/73081e38e7a8c97ca149 to your computer and use it in GitHub Desktop.
Save gordonknoppe/73081e38e7a8c97ca149 to your computer and use it in GitHub Desktop.
Test curl TLS1 support for POODLE
<?php
$ch = curl_init();
// set URL and other options
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSLVERSION, '1');
curl_setopt($ch, CURLOPT_URL, "https://developer.paypal.com/");
curl_setopt($ch, CURLOPT_HEADER, 0);
$result = curl_exec($ch);
curl_close($ch);
if ($result) {
echo 'OK' . PHP_EOL;
} else {
echo 'ERROR' . PHP_EOL;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment