mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
use www.example.com
This commit is contained in:
parent
6f9a45b54a
commit
9b72f57463
@ -9,7 +9,7 @@ assert(function_exists('curl_close'));
|
||||
$curl_version = curl_version();
|
||||
if (stripos($curl_version['ssl_version'], 'schannel') !== false) {
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_URL, 'https://example.com/');
|
||||
curl_setopt($curl, CURLOPT_URL, 'https://www.example.com/');
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
||||
curl_setopt($curl, CURLOPT_HEADER, 0);
|
||||
$data = curl_exec($curl);
|
||||
|
||||
@ -5,5 +5,5 @@ declare(strict_types=1);
|
||||
assert(function_exists('openssl_digest'));
|
||||
assert(openssl_digest('123456', 'md5') === 'e10adc3949ba59abbe56e057f20f883e');
|
||||
if (file_exists('/etc/ssl/openssl.cnf')) {
|
||||
assert(file_get_contents('https://example.com/') !== false);
|
||||
assert(file_get_contents('https://www.example.com/') !== false);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user