113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci# Derived from on https://github.com/curl/curl/issues/5120
313498266Sopenharmony_ci<info>
413498266Sopenharmony_ci<keywords>
513498266Sopenharmony_ci--next
613498266Sopenharmony_ci--config
713498266Sopenharmony_ciPOST
813498266Sopenharmony_ci</keywords>
913498266Sopenharmony_ci</info>
1013498266Sopenharmony_ci
1113498266Sopenharmony_ci#
1213498266Sopenharmony_ci# Server-side
1313498266Sopenharmony_ci<reply>
1413498266Sopenharmony_ci<data1>
1513498266Sopenharmony_ciHTTP/1.1 200 OK
1613498266Sopenharmony_ciContent-Length: 6
1713498266Sopenharmony_ciContent-Type: text/1
1813498266Sopenharmony_ci
1913498266Sopenharmony_ci-foo-
2013498266Sopenharmony_ci</data1>
2113498266Sopenharmony_ci<data2>
2213498266Sopenharmony_ciHTTP/1.1 200 OK
2313498266Sopenharmony_ciContent-Length: 6
2413498266Sopenharmony_ciContent-Type: text/2
2513498266Sopenharmony_ci
2613498266Sopenharmony_ci-foo-
2713498266Sopenharmony_ci</data2>
2813498266Sopenharmony_ci<data3>
2913498266Sopenharmony_ciHTTP/1.1 200 OK
3013498266Sopenharmony_ciContent-Length: 6
3113498266Sopenharmony_ciContent-Type: text/3
3213498266Sopenharmony_ci
3313498266Sopenharmony_ci-foo-
3413498266Sopenharmony_ci</data3>
3513498266Sopenharmony_ci</reply>
3613498266Sopenharmony_ci
3713498266Sopenharmony_ci#
3813498266Sopenharmony_ci# Client-side
3913498266Sopenharmony_ci<client>
4013498266Sopenharmony_ci<file1 name="%LOGDIR/config%TESTNUMBER-a">
4113498266Sopenharmony_ci--next
4213498266Sopenharmony_ciurl = %HOSTIP:%HTTPPORT/%TESTNUMBER0001
4313498266Sopenharmony_ciheader = "a: a"
4413498266Sopenharmony_cidata = "a"
4513498266Sopenharmony_ci</file1>
4613498266Sopenharmony_ci<file2 name="%LOGDIR/config%TESTNUMBER-b">
4713498266Sopenharmony_ci--next
4813498266Sopenharmony_ciurl = %HOSTIP:%HTTPPORT/%TESTNUMBER0002
4913498266Sopenharmony_ciheader = "b: b"
5013498266Sopenharmony_cidata = "b"
5113498266Sopenharmony_ci</file2>
5213498266Sopenharmony_ci<file3 name="%LOGDIR/config%TESTNUMBER-c">
5313498266Sopenharmony_ci--next
5413498266Sopenharmony_ciurl = %HOSTIP:%HTTPPORT/%TESTNUMBER0003
5513498266Sopenharmony_ciheader = "c: c"
5613498266Sopenharmony_cidata = "c"
5713498266Sopenharmony_ci</file3>
5813498266Sopenharmony_ci
5913498266Sopenharmony_ci<server>
6013498266Sopenharmony_cihttp
6113498266Sopenharmony_ci</server>
6213498266Sopenharmony_ci<name>
6313498266Sopenharmony_ciThree -K uses with --next and --data in each
6413498266Sopenharmony_ci</name>
6513498266Sopenharmony_ci<command>
6613498266Sopenharmony_ci-K %LOGDIR/config%TESTNUMBER-a -K %LOGDIR/config%TESTNUMBER-b -K %LOGDIR/config%TESTNUMBER-c
6713498266Sopenharmony_ci</command>
6813498266Sopenharmony_ci</client>
6913498266Sopenharmony_ci
7013498266Sopenharmony_ci#
7113498266Sopenharmony_ci# Verify data after the test has been "shot"
7213498266Sopenharmony_ci<verify>
7313498266Sopenharmony_ci<protocol nonewline="yes">
7413498266Sopenharmony_ciPOST /%TESTNUMBER0001 HTTP/1.1
7513498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
7613498266Sopenharmony_ciUser-Agent: curl/%VERSION
7713498266Sopenharmony_ciAccept: */*
7813498266Sopenharmony_cia: a
7913498266Sopenharmony_ciContent-Length: 1
8013498266Sopenharmony_ciContent-Type: application/x-www-form-urlencoded
8113498266Sopenharmony_ci
8213498266Sopenharmony_ciaPOST /%TESTNUMBER0002 HTTP/1.1
8313498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
8413498266Sopenharmony_ciUser-Agent: curl/%VERSION
8513498266Sopenharmony_ciAccept: */*
8613498266Sopenharmony_cib: b
8713498266Sopenharmony_ciContent-Length: 1
8813498266Sopenharmony_ciContent-Type: application/x-www-form-urlencoded
8913498266Sopenharmony_ci
9013498266Sopenharmony_cibPOST /%TESTNUMBER0003 HTTP/1.1
9113498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
9213498266Sopenharmony_ciUser-Agent: curl/%VERSION
9313498266Sopenharmony_ciAccept: */*
9413498266Sopenharmony_cic: c
9513498266Sopenharmony_ciContent-Length: 1
9613498266Sopenharmony_ciContent-Type: application/x-www-form-urlencoded
9713498266Sopenharmony_ci
9813498266Sopenharmony_cic
9913498266Sopenharmony_ci</protocol>
10013498266Sopenharmony_ci</verify>
10113498266Sopenharmony_ci</testcase>
102