Created
November 14, 2014 22:38
-
-
Save gordonknoppe/73081e38e7a8c97ca149 to your computer and use it in GitHub Desktop.
Test curl TLS1 support for POODLE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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