From 5345b04a43765afbb13f956d6f15160e8e56f3d5 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 3 Mar 2019 11:17:52 +0100 Subject: alt-svc: add test 355 and 356 to verify with command line curl --- tests/data/test355 | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 tests/data/test355 (limited to 'tests/data/test355') diff --git a/tests/data/test355 b/tests/data/test355 new file mode 100644 index 000000000..e9c4cb28f --- /dev/null +++ b/tests/data/test355 @@ -0,0 +1,57 @@ + + + +HTTP +Alt-Svc + + + +# +# Server-side + + +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 + +-foo- + + + +# +# Client-side + + +alt-svc + + +http + + +load Alt-Svc from file and use + + +http://%HOSTIP:%HTTPPORT/355 --alt-svc "" + + +h1 example.com 80 h1 %HOSTIP %HTTPPORT "20290222 22:19:28" 0 0 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /355 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* + + + + -- cgit v1.2.3