Last active
July 26, 2023 14:33
-
-
Save bagder/a88d3bedc8ecb69d19aeb542fa538e9b to your computer and use it in GitHub Desktop.
HTTP/3 with PHP/CURL
This file contains hidden or 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
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