113498266Sopenharmony_ci<testcase> 213498266Sopenharmony_ci<info> 313498266Sopenharmony_ci<keywords> 413498266Sopenharmony_ciCURLINFO_EFFECTIVE_URL 513498266Sopenharmony_ci</keywords> 613498266Sopenharmony_ci</info> 713498266Sopenharmony_ci 813498266Sopenharmony_ci# Server-side 913498266Sopenharmony_ci<reply> 1013498266Sopenharmony_ci<data nocheck="yes"> 1113498266Sopenharmony_ciHTTP/1.1 200 OK swsbounce 1213498266Sopenharmony_ciDate: Tue, 09 Nov 2010 14:49:00 GMT 1313498266Sopenharmony_ciServer: test-server/fake 1413498266Sopenharmony_ciContent-Type: text/html 1513498266Sopenharmony_ciFunny-head: yesyes swsclose 1613498266Sopenharmony_ciContent-Length: 0 1713498266Sopenharmony_cialt-svc: h2="3dbbdetxoyw4nsp6c3cc456oj2ays6s43ezxzsfxxri3h5xqd.example:443"; ma=315360000; persist=1 1813498266Sopenharmony_ci 1913498266Sopenharmony_ci</data> 2013498266Sopenharmony_ci 2113498266Sopenharmony_ci# This is the second response 2213498266Sopenharmony_ci<data1 nocheck="yes"> 2313498266Sopenharmony_ciHTTP/1.1 200 OK 2413498266Sopenharmony_ciConnection: close 2513498266Sopenharmony_ciContent-Length: 0 2613498266Sopenharmony_cialt-svc: h2="second.example:443"; ma=315360000; 2713498266Sopenharmony_ci 2813498266Sopenharmony_ci</data1> 2913498266Sopenharmony_ci</reply> 3013498266Sopenharmony_ci 3113498266Sopenharmony_ci# Client-side 3213498266Sopenharmony_ci<client> 3313498266Sopenharmony_ci<server> 3413498266Sopenharmony_cihttp 3513498266Sopenharmony_ci</server> 3613498266Sopenharmony_ci 3713498266Sopenharmony_ci# require debug so that alt-svc can work over plain old HTTP 3813498266Sopenharmony_ci<features> 3913498266Sopenharmony_cialt-svc 4013498266Sopenharmony_cidebug 4113498266Sopenharmony_ci</features> 4213498266Sopenharmony_ci<name> 4313498266Sopenharmony_cialt-svc cache save after resetting the handle 4413498266Sopenharmony_ci</name> 4513498266Sopenharmony_ci<setenv> 4613498266Sopenharmony_ci# make debug-curl accept Alt-Svc over plain HTTP 4713498266Sopenharmony_ciCURL_ALTSVC_HTTP="yeah" 4813498266Sopenharmony_ci</setenv> 4913498266Sopenharmony_ci<tool> 5013498266Sopenharmony_cilib%TESTNUMBER 5113498266Sopenharmony_ci</tool> 5213498266Sopenharmony_ci 5313498266Sopenharmony_ci<command> 5413498266Sopenharmony_ci%HOSTIP:%HTTPPORT/%TESTNUMBER %LOGDIR/altsvc-%TESTNUMBER 5513498266Sopenharmony_ci</command> 5613498266Sopenharmony_ci</client> 5713498266Sopenharmony_ci 5813498266Sopenharmony_ci# Verify data after the test has been "shot" 5913498266Sopenharmony_ci<verify> 6013498266Sopenharmony_ci<protocol> 6113498266Sopenharmony_ciGET /%TESTNUMBER HTTP/1.1 6213498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT 6313498266Sopenharmony_ciAccept: */* 6413498266Sopenharmony_ci 6513498266Sopenharmony_ciGET /%TESTNUMBER HTTP/1.1 6613498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT 6713498266Sopenharmony_ciAccept: */* 6813498266Sopenharmony_ci 6913498266Sopenharmony_ci</protocol> 7013498266Sopenharmony_ci<stripfile> 7113498266Sopenharmony_ci# strip out the (dynamic) expire date from the file so that the rest 7213498266Sopenharmony_ci# matches 7313498266Sopenharmony_cis/\"([^\"]*)\"/TIMESTAMP/ 7413498266Sopenharmony_ci</stripfile> 7513498266Sopenharmony_ci<file name="%LOGDIR/altsvc-%TESTNUMBER" mode="text"> 7613498266Sopenharmony_ci# Your alt-svc cache. https://curl.se/docs/alt-svc.html 7713498266Sopenharmony_ci# This file was generated by libcurl! Edit at your own risk. 7813498266Sopenharmony_cih1 127.0.0.1 %HTTPPORT h2 3dbbdetxoyw4nsp6c3cc456oj2ays6s43ezxzsfxxri3h5xqd.example 443 TIMESTAMP 1 0 7913498266Sopenharmony_ci</file> 8013498266Sopenharmony_ci</verify> 8113498266Sopenharmony_ci</testcase> 82