Changeset View
Changeset View
Standalone View
Standalone View
src/future/http/HTTPSFuture.php
Show First 20 Lines • Show All 350 Lines • ▼ Show 20 Lines | if (!$this->handle) { | ||||
$verify_host = 0; | $verify_host = 0; | ||||
} | } | ||||
} | } | ||||
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, $verify_peer); | curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, $verify_peer); | ||||
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, $verify_host); | curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, $verify_host); | ||||
curl_setopt($curl, CURLOPT_SSLVERSION, 0); | curl_setopt($curl, CURLOPT_SSLVERSION, 0); | ||||
// See T13391. Recent versions of cURL default to "HTTP/2" on some | |||||
// connections, but do not support HTTP/2 proxies. Until HTTP/2 | |||||
// stabilizes, force HTTP/1.1 explicitly. | |||||
curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | |||||
if ($proxy) { | if ($proxy) { | ||||
curl_setopt($curl, CURLOPT_PROXY, (string)$proxy); | curl_setopt($curl, CURLOPT_PROXY, (string)$proxy); | ||||
} | } | ||||
} else { | } else { | ||||
$curl = $this->handle; | $curl = $this->handle; | ||||
if (!self::$results) { | if (!self::$results) { | ||||
// NOTE: In curl_multi_select(), PHP calls curl_multi_fdset() but does | // NOTE: In curl_multi_select(), PHP calls curl_multi_fdset() but does | ||||
▲ Show 20 Lines • Show All 323 Lines • Show Last 20 Lines |