ALTSVC.md (1122B)
1 <!-- 2 Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3 4 SPDX-License-Identifier: curl 5 --> 6 7 # Alt-Svc 8 9 curl features support for the Alt-Svc: HTTP header. 10 11 ## Enable Alt-Svc in build 12 13 `./configure --enable-alt-svc` 14 15 (enabled by default since 7.73.0) 16 17 ## Standard 18 19 [RFC 7838](https://datatracker.ietf.org/doc/html/rfc7838) 20 21 # Alt-Svc cache file format 22 23 This is a text based file with one line per entry and each line consists of nine 24 space separated fields. 25 26 ## Example 27 28 h2 quic.tech 8443 h3-22 quic.tech 8443 "20190808 06:18:37" 0 0 29 30 ## Fields 31 32 1. The ALPN id for the source origin 33 2. The hostname for the source origin 34 3. The port number for the source origin 35 4. The ALPN id for the destination host 36 5. The hostname for the destination host 37 6. The port number for the destination host 38 7. The expiration date and time of this entry within double quotes. The date format is "YYYYMMDD HH:MM:SS" and the time zone is GMT. 39 8. Boolean (1 or 0) if "persist" was set for this entry 40 9. Integer priority value (not currently used) 41 42 If the hostname is an IPv6 numerical address, it is stored with brackets such 43 as `[::1]`.