Created
July 12, 2018 22:05
-
-
Save msach22/e8d6f28b9cadddb26072410601e82172 to your computer and use it in GitHub Desktop.
Run the following block of code to test your environment
This file contains 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 | |
$curl = curl_init(); | |
curl_setopt_array($curl, array( | |
CURLOPT_RETURNTRANSFER => 1, | |
CURLOPT_URL => 'https://preview.opentok.com/tls-check.json', | |
)); | |
$curlResponse = curl_exec($curl); | |
if ($curlResponse === false && curl_errno($curl) === 35) { | |
echo "Failed to connect to OpenTok, please check your system and upgrade your environment as needed."; | |
} elseif($curlResponse === false){ | |
echo "Unknown error talking to OpenTok, please try again later."; | |
} else { | |
echo "Connection successfully established with your current TLS configuration, no further action required."; | |
} | |
curl_close($curl); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello Manik,
The link https://preview.opentok.com/tls-check.json is no more working...
Possible to update this section, as in one month OpenTok disable the use of TLS1.1 ?
Best Regards,
Loïc