Created
April 7, 2020 07:05
-
-
Save xquery/305d89ed03e034c178637b12a84ab52f 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 | |
Alt-Svc | |
</keywords> | |
</info> | |
# | |
# Server-side | |
<reply> | |
<data1 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: h3-27=":8990"; ma=86400, h3-25=":8990"; ma=86400, h3-24=":8990"; ma=86400, h3-23=":8990"; ma=86400 | |
test1 | |
</data1> | |
</reply> | |
# | |
# Client-side | |
<client> | |
<features> | |
debug | |
alt-svc | |
SSL | |
</features> | |
<server> | |
http | |
https Server-localhost-sv.pem | |
</server> | |
<name> | |
parse incoming Alt-Svc and save to file | |
</name> | |
<setenv> | |
# make debug-curl accept Alt-Svc over plain HTTP | |
CURL_ALTSVC_HTTP="yeah" | |
</setenv> | |
<command option="no-output"> | |
--cacert %SRCDIR/certs/EdelCurlRoot-ca.crt -o "log/result358_1.log" --alt-svc "log/altsvc-358" "https://localhost:%HTTPSPORT/3580001" | |
</command> | |
</client> | |
# | |
# Verify data after the test has been "shot" | |
<verify> | |
<stripfile> | |
# strip out the (dynamic) expire date from the file so that the rest | |
# matches | |
s/\"([^\"]*)\"/TIMESTAMP/ | |
</stripfile> | |
<file name="log/altsvc-358" mode="text"> | |
# Your alt-svc cache. https://curl.haxx.se/docs/alt-svc.html | |
# This file was generated by libcurl! Edit at your own risk. | |
h1 localhost 8991 h3-27 localhost 8990 TIMESTAMP 0 0 | |
</file> | |
</verify> | |
</testcase> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment