[curl-http3: 基于quiche+boringssl编译]

官方文档

rust

shell 复制代码
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

source $HOME/.cargo/env

quiche + boringssl

shell 复制代码
git clone --recursive -b 0.24.5 https://github.com/cloudflare/quiche

cd quiche

# sudo dnf install -y gcc gcc-c++ make cmake
cargo build --package quiche --release --features ffi,pkg-config-meta,qlog

ln -s libquiche.so target/release/libquiche.so.0

mkdir quiche/deps/boringssl/src/lib

ln -vnf $(find target/release -name libcrypto.a -o -name libssl.a) quiche/deps/boringssl/src/lib/

curl

shell 复制代码
cd ..
git clone https://github.com/curl/curl

cd curl

# sudo dnf install -y automake autoconf libtool libpsl libpsl-devel
autoreconf -fi

./configure LDFLAGS="-Wl,-rpath,$PWD/../quiche/target/release" --with-openssl=$PWD/../quiche/quiche/deps/boringssl/src --with-quiche=$PWD/../quiche/target/release

make

sudo make install

测试

shell 复制代码
[idoly@OuO ~]$ curl -I --http3 --noproxy '*' https://cloudflare-quic.com
HTTP/3 200
date: Sun, 26 Oct 2025 12:48:46 GMT
content-type: text/html
cf-ray: 994a11e5afbd265a-LAX
priority: u=3,i=?0
server: cloudflare
alt-svc: h3=":443"; ma=86400
server-timing: cfExtPri
相关推荐
叫我詹躲躲17 天前
Linux 服务器磁盘满了?教你快速找到大文件,安全删掉不踩坑!
linux·前端·curl
叫我詹躲躲17 天前
3 分钟搞定 Linux 磁盘清理:实用命令 + 自动脚本,新手也会
linux·curl
大米粥哥哥2 个月前
Qt libcurl的下载、配置及简单测试 (windows环境)
开发语言·c++·windows·qt·http·curl·libcurl
DogDaoDao2 个月前
深入解析quiche开源项目:从QUIC协议到云原生实践
音视频·实时音视频·tcp·quic·视频直播·流媒体协议·quiche
xchenhao2 个月前
Elasticsearch 常用任务管理命令及实战应用
elasticsearch·webhook·curl·查询·任务·告警·bot
xiaok2 个月前
使用curl在Linux中测试HTTP请求
curl
Ray Song2 个月前
【Linux】 wget、curl 用法区别
linux·运维·服务器·curl·wget
哈里谢顿3 个月前
curl命令详解
curl
皮皮林5513 个月前
HTTP3势头这么猛,它的优势在哪里?
http3