Skip to content

Instantly share code, notes, and snippets.

@bagder
Last active Jun 5, 2021
Embed
What would you like to do?
HTTP/3 with PHP/CURL
if (!defined('CURL_HTTP_VERSION_3')) {
define('CURL_HTTP_VERSION_3', 30);
}
$ch = curl_init("https://cloudflare-quic.com/");
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_3);
curl_exec($ch);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment