return new Response(0, PhpXmlRpc::$xmlrpcerr['no_ssl'], PhpXmlRpc::$xmlrpcstr['no_ssl']);
}
}
- if (($method == 'http2tls' && !defined('CURL_HTTP_VERSION_2TLS')) ||
+ if (($method == 'http2tls' && !defined('CURL_HTTP_VERSION_2_0')) ||
($method == 'http2' && !defined('CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE'))) {
$this->errstr = 'HTTP/2 unavailable on this install';
return new Response(0, PhpXmlRpc::$xmlrpcerr['no_http2'], PhpXmlRpc::$xmlrpcstr['no_http2']);
curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE);
break;
case 'http2tls':
- curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2TLS);
+ curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0);
break;
}
{
$this->markTestSkipped('HTTPS SERVER definition missing: cannot test http/2 tls');
return;
- } else if (!defined('CURL_HTTP_VERSION_2TLS'))
+ } else if (!defined('CURL_HTTP_VERSION_2_0'))
{
$this->markTestSkipped('CURL http/2 support missing: cannot test http/2 tls');
return;