curl/lib/vtls
Jay Satiro b844c1a075 vtls: use ALPN http/1.0 & http/1.1 for HTTP/1.0 requests
- For compatibility reasons send both ALPN ids http/1.0 and http/1.1 for
  HTTP/1.0 requests.

Prior to this change for compatibility reasons curl would send ALPN
http/1.1 for HTTP/1.0 requests, since some servers do not recognize
ALPN http/1.0. However some servers may recognize only ALPN http/1.0 for
HTTP/1.0 requests. Therefore curl now sends both.

Reported-by: programmerlexi@users.noreply.github.com

Fixes https://github.com/curl/curl/issues/20487
Closes https://github.com/curl/curl/pull/20533
2026-02-09 12:15:35 -05:00
..
apple.c build: fully omit verbose strings and code when disabled 2026-01-21 13:18:35 +01:00
apple.h tidy-up: miscellaneous 2025-12-26 22:06:09 +01:00
cipher_suite.c tidy-up: miscellaneous 2025-12-26 22:06:09 +01:00
cipher_suite.h build: assume stdint.h 2026-01-28 12:05:20 +01:00
gtls.c tidy-up: move literals to right-side of if expressions (where missing) 2026-02-07 16:41:51 +01:00
gtls.h tidy-up: miscellaneous 2025-12-26 22:06:09 +01:00
hostcheck.c tidy-up: miscellaneous 2025-12-26 22:06:09 +01:00
hostcheck.h tidy-up: miscellaneous 2025-12-26 22:06:09 +01:00
keylog.c tidy-up: miscellaneous 2025-12-26 22:06:09 +01:00
keylog.h spelling: 'a' vs 'an' 2025-05-30 11:38:35 +02:00
mbedtls.c tidy-up: move literals to right-side of if expressions (where missing) 2026-02-07 16:41:51 +01:00
mbedtls.h lib: include files using known path 2025-04-08 17:00:00 +02:00
openssl.c tidy-up: move literals to right-side of if expressions (where missing) 2026-02-07 16:41:51 +01:00
openssl.h tidy-up: miscellaneous 2025-12-26 22:06:09 +01:00
rustls.c tidy-up: move literals to right-side of if expressions (where missing) 2026-02-07 16:41:51 +01:00
rustls.h tidy-up: miscellaneous 2025-12-26 22:06:09 +01:00
schannel.c build: tidy up and dedupe strdup functions 2026-02-03 14:02:30 +01:00
schannel.h openssl: drop includes unused or duplicate 2025-12-20 13:51:05 +01:00
schannel_int.h time-keeping: keep timestamp in multi, always update 2025-12-18 22:10:06 +01:00
schannel_verify.c tidy-up: miscellaneous 2025-12-26 22:06:09 +01:00
vtls.c vtls: use ALPN http/1.0 & http/1.1 for HTTP/1.0 requests 2026-02-09 12:15:35 -05:00
vtls.h tls: add new SSLSUPP flags for several options 2026-01-20 10:34:08 +01:00
vtls_int.h vtls: use ALPN http/1.0 & http/1.1 for HTTP/1.0 requests 2026-02-09 12:15:35 -05:00
vtls_scache.c build: drop more forward function declarations 2026-01-14 23:34:05 +01:00
vtls_scache.h tidy-up: miscellaneous 2025-12-26 22:06:09 +01:00
vtls_spack.c build: tidy up and dedupe strdup functions 2026-02-03 14:02:30 +01:00
vtls_spack.h build: fix build errors/warnings in rare configurations 2025-07-23 22:17:03 +02:00
wolfssl.c tidy-up: move literals to right-side of if expressions (where missing) 2026-02-07 16:41:51 +01:00
wolfssl.h wolfssl: fix possible assert with !HAVE_NO_EX wolfSSL builds 2025-12-07 17:01:45 +01:00
x509asn1.c build: use more const 2026-02-02 12:32:49 +01:00
x509asn1.h tidy-up: miscellaneous 2025-12-26 22:06:09 +01:00