xref: /aosp_15_r20/external/curl/tests/data/test431 (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker<testcase>
2*6236dae4SAndroid Build Coastguard Worker# Derived from on https://github.com/curl/curl/issues/5120
3*6236dae4SAndroid Build Coastguard Worker<info>
4*6236dae4SAndroid Build Coastguard Worker<keywords>
5*6236dae4SAndroid Build Coastguard Worker--next
6*6236dae4SAndroid Build Coastguard Worker--config
7*6236dae4SAndroid Build Coastguard WorkerPOST
8*6236dae4SAndroid Build Coastguard Worker</keywords>
9*6236dae4SAndroid Build Coastguard Worker</info>
10*6236dae4SAndroid Build Coastguard Worker
11*6236dae4SAndroid Build Coastguard Worker#
12*6236dae4SAndroid Build Coastguard Worker# Server-side
13*6236dae4SAndroid Build Coastguard Worker<reply>
14*6236dae4SAndroid Build Coastguard Worker<data1>
15*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK
16*6236dae4SAndroid Build Coastguard WorkerContent-Length: 6
17*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/1
18*6236dae4SAndroid Build Coastguard Worker
19*6236dae4SAndroid Build Coastguard Worker-foo-
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 WorkerContent-Length: 6
24*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/2
25*6236dae4SAndroid Build Coastguard Worker
26*6236dae4SAndroid Build Coastguard Worker-foo-
27*6236dae4SAndroid Build Coastguard Worker</data2>
28*6236dae4SAndroid Build Coastguard Worker<data3>
29*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK
30*6236dae4SAndroid Build Coastguard WorkerContent-Length: 6
31*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/3
32*6236dae4SAndroid Build Coastguard Worker
33*6236dae4SAndroid Build Coastguard Worker-foo-
34*6236dae4SAndroid Build Coastguard Worker</data3>
35*6236dae4SAndroid Build Coastguard Worker</reply>
36*6236dae4SAndroid Build Coastguard Worker
37*6236dae4SAndroid Build Coastguard Worker#
38*6236dae4SAndroid Build Coastguard Worker# Client-side
39*6236dae4SAndroid Build Coastguard Worker<client>
40*6236dae4SAndroid Build Coastguard Worker<file1 name="%LOGDIR/config%TESTNUMBER-a">
41*6236dae4SAndroid Build Coastguard Worker--next
42*6236dae4SAndroid Build Coastguard Workerurl = %HOSTIP:%HTTPPORT/%TESTNUMBER0001
43*6236dae4SAndroid Build Coastguard Workerheader = "a: a"
44*6236dae4SAndroid Build Coastguard Workerdata = "a"
45*6236dae4SAndroid Build Coastguard Worker</file1>
46*6236dae4SAndroid Build Coastguard Worker<file2 name="%LOGDIR/config%TESTNUMBER-b">
47*6236dae4SAndroid Build Coastguard Worker--next
48*6236dae4SAndroid Build Coastguard Workerurl = %HOSTIP:%HTTPPORT/%TESTNUMBER0002
49*6236dae4SAndroid Build Coastguard Workerheader = "b: b"
50*6236dae4SAndroid Build Coastguard Workerdata = "b"
51*6236dae4SAndroid Build Coastguard Worker</file2>
52*6236dae4SAndroid Build Coastguard Worker
53*6236dae4SAndroid Build Coastguard Worker<server>
54*6236dae4SAndroid Build Coastguard Workerhttp
55*6236dae4SAndroid Build Coastguard Worker</server>
56*6236dae4SAndroid Build Coastguard Worker<name>
57*6236dae4SAndroid Build Coastguard WorkerTwo -K uses with --next and then one on cmdline
58*6236dae4SAndroid Build Coastguard Worker</name>
59*6236dae4SAndroid Build Coastguard Worker<command>
60*6236dae4SAndroid Build Coastguard Worker-K %LOGDIR/config%TESTNUMBER-a -K %LOGDIR/config%TESTNUMBER-b --next -d c %HOSTIP:%HTTPPORT/%TESTNUMBER0003 -H "c: c"
61*6236dae4SAndroid Build Coastguard Worker</command>
62*6236dae4SAndroid Build Coastguard Worker</client>
63*6236dae4SAndroid Build Coastguard Worker
64*6236dae4SAndroid Build Coastguard Worker#
65*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot"
66*6236dae4SAndroid Build Coastguard Worker<verify>
67*6236dae4SAndroid Build Coastguard Worker<protocol nonewline="yes">
68*6236dae4SAndroid Build Coastguard WorkerPOST /%TESTNUMBER0001 HTTP/1.1
69*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT
70*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION
71*6236dae4SAndroid Build Coastguard WorkerAccept: */*
72*6236dae4SAndroid Build Coastguard Workera: a
73*6236dae4SAndroid Build Coastguard WorkerContent-Length: 1
74*6236dae4SAndroid Build Coastguard WorkerContent-Type: application/x-www-form-urlencoded
75*6236dae4SAndroid Build Coastguard Worker
76*6236dae4SAndroid Build Coastguard WorkeraPOST /%TESTNUMBER0002 HTTP/1.1
77*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT
78*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION
79*6236dae4SAndroid Build Coastguard WorkerAccept: */*
80*6236dae4SAndroid Build Coastguard Workerb: b
81*6236dae4SAndroid Build Coastguard WorkerContent-Length: 1
82*6236dae4SAndroid Build Coastguard WorkerContent-Type: application/x-www-form-urlencoded
83*6236dae4SAndroid Build Coastguard Worker
84*6236dae4SAndroid Build Coastguard WorkerbPOST /%TESTNUMBER0003 HTTP/1.1
85*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT
86*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION
87*6236dae4SAndroid Build Coastguard WorkerAccept: */*
88*6236dae4SAndroid Build Coastguard Workerc: c
89*6236dae4SAndroid Build Coastguard WorkerContent-Length: 1
90*6236dae4SAndroid Build Coastguard WorkerContent-Type: application/x-www-form-urlencoded
91*6236dae4SAndroid Build Coastguard Worker
92*6236dae4SAndroid Build Coastguard Workerc
93*6236dae4SAndroid Build Coastguard Worker</protocol>
94*6236dae4SAndroid Build Coastguard Worker</verify>
95*6236dae4SAndroid Build Coastguard Worker</testcase>
96