mirror of
https://github.com/curl/curl.git
synced 2025-04-18 16:30:45 +08:00
This partly reverts 0e06603b2318356ba78b2f These file formats are not properly documented elsewhere, plus the website uses these files to populate the documentation pages to which users end up via the URLs that are mentioned within the alt-svc and hsts files. Fixes #15705 Reported-by: Jeffrey Bosboom Closes #15706
1.1 KiB
1.1 KiB
Alt-Svc
curl features support for the Alt-Svc: HTTP header.
Enable Alt-Svc in build
./configure --enable-alt-svc
(enabled by default since 7.73.0)
Standard
Alt-Svc cache file format
This is a text based file with one line per entry and each line consists of nine space separated fields.
Example
h2 quic.tech 8443 h3-22 quic.tech 8443 "20190808 06:18:37" 0 0
Fields
- The ALPN id for the source origin
- The hostname for the source origin
- The port number for the source origin
- The ALPN id for the destination host
- The hostname for the destination host
- The port number for the destination host
- 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.
- Boolean (1 or 0) if "persist" was set for this entry
- Integer priority value (not currently used)
If the hostname is an IPv6 numerical address, it is stored with brackets such
as [::1]
.