xref: /aosp_15_r20/external/curl/tests/data/test2502 (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker<testcase>
2*6236dae4SAndroid Build Coastguard Worker<info>
3*6236dae4SAndroid Build Coastguard Worker<keywords>
4*6236dae4SAndroid Build Coastguard WorkerHTTP
5*6236dae4SAndroid Build Coastguard WorkerHTTP/3
6*6236dae4SAndroid Build Coastguard Workermulti
7*6236dae4SAndroid Build Coastguard Workerverbose logs
8*6236dae4SAndroid Build Coastguard Worker</keywords>
9*6236dae4SAndroid Build Coastguard Worker</info>
10*6236dae4SAndroid Build Coastguard Worker
11*6236dae4SAndroid Build Coastguard Worker# Server-side
12*6236dae4SAndroid Build Coastguard Worker<reply>
13*6236dae4SAndroid Build Coastguard Worker<data1 crlf="yes">
14*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK
15*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT
16*6236dae4SAndroid Build Coastguard WorkerServer: server.example.com
17*6236dae4SAndroid Build Coastguard WorkerContent-Length: 47
18*6236dae4SAndroid Build Coastguard Worker
19*6236dae4SAndroid Build Coastguard Workerfile contents should appear once for each file
20*6236dae4SAndroid Build Coastguard Worker</data1>
21*6236dae4SAndroid Build Coastguard Worker<data2>
22*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK
23*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT
24*6236dae4SAndroid Build Coastguard WorkerServer: server.example.com
25*6236dae4SAndroid Build Coastguard WorkerContent-Length: 47
26*6236dae4SAndroid Build Coastguard Worker
27*6236dae4SAndroid Build Coastguard Workerfile contents should appear once for each file
28*6236dae4SAndroid Build Coastguard Worker</data2>
29*6236dae4SAndroid Build Coastguard Worker<data3>
30*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK
31*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT
32*6236dae4SAndroid Build Coastguard WorkerServer: server.example.com
33*6236dae4SAndroid Build Coastguard WorkerContent-Length: 47
34*6236dae4SAndroid Build Coastguard Worker
35*6236dae4SAndroid Build Coastguard Workerfile contents should appear once for each file
36*6236dae4SAndroid Build Coastguard Worker</data3>
37*6236dae4SAndroid Build Coastguard Worker<data4>
38*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK
39*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT
40*6236dae4SAndroid Build Coastguard WorkerServer: server.example.com
41*6236dae4SAndroid Build Coastguard WorkerContent-Length: 47
42*6236dae4SAndroid Build Coastguard Worker
43*6236dae4SAndroid Build Coastguard Workerfile contents should appear once for each file
44*6236dae4SAndroid Build Coastguard Worker</data4>
45*6236dae4SAndroid Build Coastguard Worker</reply>
46*6236dae4SAndroid Build Coastguard Worker
47*6236dae4SAndroid Build Coastguard Worker# Client-side
48*6236dae4SAndroid Build Coastguard Worker<client>
49*6236dae4SAndroid Build Coastguard Worker<features>
50*6236dae4SAndroid Build Coastguard Workerhttp/3
51*6236dae4SAndroid Build Coastguard Worker</features>
52*6236dae4SAndroid Build Coastguard Worker<server>
53*6236dae4SAndroid Build Coastguard Workerhttp/3
54*6236dae4SAndroid Build Coastguard Worker</server>
55*6236dae4SAndroid Build Coastguard Worker<tool>
56*6236dae4SAndroid Build Coastguard Workerlib%TESTNUMBER
57*6236dae4SAndroid Build Coastguard Worker</tool>
58*6236dae4SAndroid Build Coastguard Worker<name>
59*6236dae4SAndroid Build Coastguard WorkerHTTP GET multiple over HTTP/3
60*6236dae4SAndroid Build Coastguard Worker</name>
61*6236dae4SAndroid Build Coastguard Worker<command>
62*6236dae4SAndroid Build Coastguard Workerhttps://%HOSTIP:%HTTP3PORT/path/%TESTNUMBER %HOSTIP %HTTP3PORT
63*6236dae4SAndroid Build Coastguard Worker</command>
64*6236dae4SAndroid Build Coastguard Worker</client>
65*6236dae4SAndroid Build Coastguard Worker
66*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot"
67*6236dae4SAndroid Build Coastguard Worker<verify>
68*6236dae4SAndroid Build Coastguard Worker<protocol crlf="yes">
69*6236dae4SAndroid Build Coastguard WorkerGET https://localhost:%HTTP3PORT/path/%TESTNUMBER0001 HTTP/1.1
70*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT
71*6236dae4SAndroid Build Coastguard WorkerAccept: */*
72*6236dae4SAndroid Build Coastguard WorkerVia: 3 nghttpx
73*6236dae4SAndroid Build Coastguard Worker
74*6236dae4SAndroid Build Coastguard WorkerGET https://localhost:%HTTP3PORT/path/%TESTNUMBER0002 HTTP/1.1
75*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT
76*6236dae4SAndroid Build Coastguard WorkerAccept: */*
77*6236dae4SAndroid Build Coastguard WorkerVia: 3 nghttpx
78*6236dae4SAndroid Build Coastguard Worker
79*6236dae4SAndroid Build Coastguard WorkerGET https://localhost:%HTTP3PORT/path/%TESTNUMBER0003 HTTP/1.1
80*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT
81*6236dae4SAndroid Build Coastguard WorkerAccept: */*
82*6236dae4SAndroid Build Coastguard WorkerVia: 3 nghttpx
83*6236dae4SAndroid Build Coastguard Worker
84*6236dae4SAndroid Build Coastguard WorkerGET https://localhost:%HTTP3PORT/path/%TESTNUMBER0004 HTTP/1.1
85*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT
86*6236dae4SAndroid Build Coastguard WorkerAccept: */*
87*6236dae4SAndroid Build Coastguard WorkerVia: 3 nghttpx
88*6236dae4SAndroid Build Coastguard Worker
89*6236dae4SAndroid Build Coastguard Worker</protocol>
90*6236dae4SAndroid Build Coastguard Worker<strip>
91*6236dae4SAndroid Build Coastguard Worker^Host:.*
92*6236dae4SAndroid Build Coastguard Worker</strip>
93*6236dae4SAndroid Build Coastguard Worker<file name="%LOGDIR/stderr%TESTNUMBER" mode="text">
94*6236dae4SAndroid Build Coastguard Worker== Info: Connection #0 to host localhost left intact
95*6236dae4SAndroid Build Coastguard Worker== Info: Connection #0 to host localhost left intact
96*6236dae4SAndroid Build Coastguard Worker== Info: Connection #0 to host localhost left intact
97*6236dae4SAndroid Build Coastguard Worker== Info: Connection #0 to host localhost left intact
98*6236dae4SAndroid Build Coastguard Worker</file>
99*6236dae4SAndroid Build Coastguard Worker<stripfile>
100*6236dae4SAndroid Build Coastguard Worker$_ = '' if (($_ !~ /left intact/) && ($_ !~ /Closing connection/))
101*6236dae4SAndroid Build Coastguard Worker</stripfile>
102*6236dae4SAndroid Build Coastguard Worker</verify>
103*6236dae4SAndroid Build Coastguard Worker</testcase>
104