Created
April 14, 2020 12:55
-
-
Save xquery/a7840765de699882f7919f0111b7269b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<testcase> | |
<info> | |
<keywords> | |
HTTP | |
HTTP GET | |
Alt-Svc | |
HTTP/2 | |
</keywords> | |
</info> | |
# | |
# Server-side | |
<reply> | |
<data nocheck="yes"> | |
HTTP/1.1 200 OK | |
Date: Thu, 09 Nov 2010 14:49:00 GMT | |
Content-Length: 6 | |
Connection: close | |
Content-Type: text/html | |
Funny-head: yesyes | |
Alt-Svc: h2=":9014", ma=315360000; persist=1 | |
test1 | |
</data> | |
</reply> | |
# | |
# Client-side | |
<client> | |
<features> | |
alt-svc | |
debug | |
</features> | |
<server> | |
http | |
http/2 | |
</server> | |
<name> | |
HTTP/2 GET with Upgrade: | |
</name> | |
<setenv> | |
# make debug-curl accept Alt-Svc over plain HTTP | |
CURL_ALTSVC_HTTP="yeah" | |
</setenv> | |
<command> | |
--http2 --alt-svc "log/altsvc-358" "http://%HOSTIP:%HTTPPORT/358" | |
</command> | |
<file name="log/altsvc-358"> | |
h2 %HOSTIP %HTTPPORT h2 %HOSTIP %HTTP2PORT "20290222 22:19:28" 0 0 | |
</file> | |
</client> | |
# | |
# Verify data after the test has been "shot" | |
<verify> | |
</verify> | |
</testcase> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment