113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci<info>
313498266Sopenharmony_ci<keywords>
413498266Sopenharmony_ciHTTPS
513498266Sopenharmony_ciHTTPS GET
613498266Sopenharmony_ciAlt-Svc
713498266Sopenharmony_ciHTTP/2
813498266Sopenharmony_ci</keywords>
913498266Sopenharmony_ci</info>
1013498266Sopenharmony_ci
1113498266Sopenharmony_ci#
1213498266Sopenharmony_ci# Server-side
1313498266Sopenharmony_ci<reply>
1413498266Sopenharmony_ci<data nocheck="yes">
1513498266Sopenharmony_ciHTTP/1.1 200 OK
1613498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT
1713498266Sopenharmony_ciContent-Length: 6
1813498266Sopenharmony_ciConnection: close
1913498266Sopenharmony_ciContent-Type: text/html
2013498266Sopenharmony_ciFunny-head: yesyes
2113498266Sopenharmony_ciAlt-Svc: h2=":%HTTP2PORT", ma=315360000; persist=0
2213498266Sopenharmony_ci
2313498266Sopenharmony_ci-foo-
2413498266Sopenharmony_ci</data>
2513498266Sopenharmony_ci</reply>
2613498266Sopenharmony_ci
2713498266Sopenharmony_ci#
2813498266Sopenharmony_ci# Client-side
2913498266Sopenharmony_ci<client>
3013498266Sopenharmony_ci<features>
3113498266Sopenharmony_cialt-svc
3213498266Sopenharmony_cidebug
3313498266Sopenharmony_cih2c
3413498266Sopenharmony_ci</features>
3513498266Sopenharmony_ci<server>
3613498266Sopenharmony_cihttps
3713498266Sopenharmony_cihttp/2
3813498266Sopenharmony_ci</server>
3913498266Sopenharmony_ci<name>
4013498266Sopenharmony_ciHTTPS GET translated by alt-svc lookup to HTTP/2 GET
4113498266Sopenharmony_ci</name>
4213498266Sopenharmony_ci<setenv>
4313498266Sopenharmony_ci# make debug-curl accept Alt-Svc over plain HTTP
4413498266Sopenharmony_ciCURL_ALTSVC_HTTP="yeah"
4513498266Sopenharmony_ci</setenv>
4613498266Sopenharmony_ci<command>
4713498266Sopenharmony_ci--http2 --alt-svc "%LOGDIR/altsvc-%TESTNUMBER" "http://%HOSTIP:%HTTPSPORT/%TESTNUMBER" "http://%HOSTIP:%HTTPSPORT/%TESTNUMBER"
4813498266Sopenharmony_ci</command>
4913498266Sopenharmony_ci<file name="%LOGDIR/altsvc-%TESTNUMBER">
5013498266Sopenharmony_cih2 %HOSTIP %HTTPSPORT h2 %HOSTIP %HTTP2PORT "20290222 22:19:28" 0 0
5113498266Sopenharmony_ci</file>
5213498266Sopenharmony_ci
5313498266Sopenharmony_ci</client>
5413498266Sopenharmony_ci
5513498266Sopenharmony_ci#
5613498266Sopenharmony_ci# Verify data after the test has been "shot"
5713498266Sopenharmony_ci<verify>
5813498266Sopenharmony_ci<stdout>
5913498266Sopenharmony_ciHTTP/1.1 101 Switching Protocols
6013498266Sopenharmony_ciConnection: Upgrade
6113498266Sopenharmony_ciUpgrade: h2c
6213498266Sopenharmony_ci
6313498266Sopenharmony_ciHTTP/2 200 
6413498266Sopenharmony_cidate: Tue, 09 Nov 2010 14:49:00 GMT
6513498266Sopenharmony_cicontent-length: 6
6613498266Sopenharmony_cicontent-type: text/html
6713498266Sopenharmony_cifunny-head: yesyes
6813498266Sopenharmony_cialt-svc: h2=":%HTTP2PORT", ma=315360000; persist=0
6913498266Sopenharmony_civia: 1.1 nghttpx
7013498266Sopenharmony_ci
7113498266Sopenharmony_ci-foo-
7213498266Sopenharmony_ciHTTP/2 200 
7313498266Sopenharmony_cidate: Tue, 09 Nov 2010 14:49:00 GMT
7413498266Sopenharmony_cicontent-length: 6
7513498266Sopenharmony_cicontent-type: text/html
7613498266Sopenharmony_cifunny-head: yesyes
7713498266Sopenharmony_cialt-svc: h2=":%HTTP2PORT", ma=315360000; persist=0
7813498266Sopenharmony_civia: 1.1 nghttpx
7913498266Sopenharmony_ci
8013498266Sopenharmony_ci-foo-
8113498266Sopenharmony_ci</stdout>
8213498266Sopenharmony_ci<stripfile>
8313498266Sopenharmony_cis/^server: nghttpx.*\r?\n//
8413498266Sopenharmony_ci# strip out the (dynamic) expire date from the file so that the rest
8513498266Sopenharmony_ci# matches
8613498266Sopenharmony_cis/\"2([^\"]*)\"/TIMESTAMP/
8713498266Sopenharmony_ci</stripfile>
8813498266Sopenharmony_ci<file name="%LOGDIR/altsvc-%TESTNUMBER" mode="text">
8913498266Sopenharmony_ci# Your alt-svc cache. https://curl.se/docs/alt-svc.html
9013498266Sopenharmony_ci# This file was generated by libcurl! Edit at your own risk.
9113498266Sopenharmony_cih2 %HOSTIP %HTTPSPORT h2 %HOSTIP %HTTP2PORT TIMESTAMP 0 0
9213498266Sopenharmony_ci</file>
9313498266Sopenharmony_ci</verify>
9413498266Sopenharmony_ci</testcase>
95