-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Description
I did this
- I started a local https server on port 8000.
- I sent a request using
curl --http1.0 -vvv --insecure https://localhost:8000 - Curl offers http/1.1 via ALPN
- Curl sends a http/1.0 request
I expected the following
Curl should offer http/1.0 via ALPN instead of http/1.1 as http/1.0 was specified via the command line and the send request was also http/1.0
curl/libcurl version
curl 8.17.0 (x86_64-pc-linux-gnu) libcurl/8.17.0 OpenSSL/3.6.0 zlib/1.3.1 brotli/1.2.0 zstd/1.5.7 libidn2/2.3.8 libpsl/0.21.5 libssh2/1.11.1 nghttp2/1.67.1 ngtcp2/1.18.0 nghttp3/1.13.1 mit-krb5/1.22.1
Release-Date: 2025-11-05
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTP3 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM PSL SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd
operating system
Linux nixie-tube 6.18.5-zen1 #1-NixOS ZEN SMP PREEMPT_DYNAMIC Tue Jan 1 00:00:00 UTC 1980 x86_64 GNU/Linux