mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
HTTP3: merged and simplified the two 'running' sections
This commit is contained in:
parent
8bdff35287
commit
0ccdec339d
@ -68,21 +68,6 @@ Build curl
|
|||||||
% LDFLAGS="-Wl,-rpath,<somewhere1>/lib" ./configure --with-ssl=<somewhere1> --with-nghttp3=<somewhere2> --with-ngtcp2=<somewhere3>
|
% LDFLAGS="-Wl,-rpath,<somewhere1>/lib" ./configure --with-ssl=<somewhere1> --with-nghttp3=<somewhere2> --with-ngtcp2=<somewhere3>
|
||||||
% make
|
% make
|
||||||
|
|
||||||
## Running
|
|
||||||
|
|
||||||
Make sure the custom OpenSSL library is the one used at run-time, as otherwise
|
|
||||||
you'll just get ld.so linker errors.
|
|
||||||
|
|
||||||
## Invoke from command line
|
|
||||||
|
|
||||||
Use HTTP/3 directly:
|
|
||||||
|
|
||||||
curl --http3 https://nghttp2.org:8443/
|
|
||||||
|
|
||||||
Upgrade via Alt-Svc:
|
|
||||||
|
|
||||||
curl --alt-svc altsvc.cache https://quic.aiortc.org/
|
|
||||||
|
|
||||||
# quiche version
|
# quiche version
|
||||||
|
|
||||||
## build
|
## build
|
||||||
@ -117,13 +102,14 @@ Clone and build curl:
|
|||||||
% ./configure LDFLAGS="-Wl,-rpath,$PWD/../quiche/target/release" --with-ssl=$PWD/../quiche/deps/boringssl/.openssl --with-quiche=$PWD/../quiche/target/release
|
% ./configure LDFLAGS="-Wl,-rpath,$PWD/../quiche/target/release" --with-ssl=$PWD/../quiche/deps/boringssl/.openssl --with-quiche=$PWD/../quiche/target/release
|
||||||
% make
|
% make
|
||||||
|
|
||||||
## Running
|
## Run
|
||||||
|
|
||||||
Make an HTTP/3 request.
|
Use HTTP/3 directly:
|
||||||
|
|
||||||
% src/curl --http3 https://cloudflare-quic.com/
|
curl --http3 https://nghttp2.org:8443/
|
||||||
% src/curl --http3 https://facebook.com/
|
|
||||||
% src/curl --http3 https://quic.aiortc.org/
|
Upgrade via Alt-Svc:
|
||||||
% src/curl --http3 https://quic.rocks:4433/
|
|
||||||
|
curl --alt-svc altsvc.cache https://quic.aiortc.org/
|
||||||
|
|
||||||
See this [list of public HTTP/3 servers](https://bagder.github.io/HTTP3-test/)
|
See this [list of public HTTP/3 servers](https://bagder.github.io/HTTP3-test/)
|
||||||
|
Loading…
Reference in New Issue
Block a user