[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
相关推荐
Wpa.wk5 天前
curl-发送请求 和 tcpdump与wireshark的介绍
测试工具·wireshark·tcpdump·curl
云游云记10 天前
php cURL 常用参数详解与实用指南
开发语言·php·curl
sxy_976117 天前
AX86u官方固件温度监控(CPU,WIFI芯片)
python·docker·curl·nc·nas·温度·ax86u
码农爱学习20 天前
curl使用读回调来分块上报文件
curl
为java加瓦25 天前
Linux 系统磁盘空间清理指南:安全释放存储空间的完整方案
linux·curl
太空眼睛1 个月前
【MCP】使用SpringBoot基于Streamable-HTTP构建MCP-Server
spring boot·sse·curl·mcp·mcp-server·spring-ai·streamable
风清扬_jd1 个月前
libcurl 开启https一键编译指南【MT方式】
c++·https·curl
haibindev1 个月前
【终极踩坑指南】Windows 10上MsQuic证书加载失败?坑不在证书,而在Schannel!
直播·http3·quic·流媒体
三两肉1 个月前
HTTP/1.1到HTTP/3:互联网通信协议的三代演进之路
网络·网络协议·http·http3·http2·http1.1
码农爱学习2 个月前
curl编程实例-上传文件
curl