curl/tests/data/test3304
2025-08-27 08:43:54 +03:00

69 lines
1.1 KiB
Text

<testcase>
<info>
<keywords>
HTTP
HTTP GET
Alt-Svc
HTTP/2
</keywords>
</info>
#
# Server-side
<reply>
<data nocheck="yes">
HTTP/1.1 200 OK
Date: Tue, 09 Nov 2010 14:49:00 GMT
Content-Length: 6
Connection: close
Content-Type: text/html
Funny-Head: yesyes
-foo-
</data>
</reply>
#
# Client-side
<client>
<features>
alt-svc
Debug
IPv6
</features>
<server>
http
</server>
<name>
failing alt svc retried into second alt
</name>
<setenv>
# make Debug-curl accept Alt-Svc over plain HTTP
CURL_ALTSVC_HTTP="yeah"
</setenv>
<command>
--alt-svc "%LOGDIR/altsvc-%TESTNUMBER" "http://%HOSTIP:%HTTPPORT/%TESTNUMBER"
</command>
<file name="%LOGDIR/altsvc-%TESTNUMBER">
h1 %HOSTIP %HTTPPORT h1 %HOST6IP %NOLISTENPORT "20290222 22:19:28" 0 0
h2 %HOSTIP %HTTPPORT h2 %HOST6IP %HTTPPORT "20290222 22:19:28" 0 0
h3 %HOSTIP %HTTPPORT h3 %HOST6IP %NOLISTENPORT "20290222 22:19:28" 0 0
</file>
</client>
#
# Verify data after the test has been "shot"
<verify>
<stdout>
HTTP/1.1 200 OK
Date: Tue, 09 Nov 2010 14:49:00 GMT
Content-Length: 6
Connection: close
Content-Type: text/html
Funny-Head: yesyes
-foo-
</stdout>
</verify>
</testcase>