2020-03-20 17:34:18 +08:00
|
|
|
<testcase>
|
|
|
|
# Derived from on https://github.com/curl/curl/issues/5120
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
--next
|
|
|
|
--config
|
|
|
|
POST
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data1>
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Content-Length: 6
|
|
|
|
Content-Type: text/1
|
|
|
|
|
|
|
|
-foo-
|
|
|
|
</data1>
|
|
|
|
<data2>
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Content-Length: 6
|
|
|
|
Content-Type: text/2
|
|
|
|
|
|
|
|
-foo-
|
|
|
|
</data2>
|
|
|
|
<data3>
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Content-Length: 6
|
|
|
|
Content-Type: text/3
|
|
|
|
|
|
|
|
-foo-
|
|
|
|
</data3>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
2023-03-29 09:20:54 +08:00
|
|
|
<file1 name="%LOGDIR/config%TESTNUMBER-a">
|
2020-03-20 17:34:18 +08:00
|
|
|
--next
|
2021-03-13 00:38:26 +08:00
|
|
|
url = %HOSTIP:%HTTPPORT/%TESTNUMBER0001
|
2020-03-20 17:34:18 +08:00
|
|
|
header = "a: a"
|
|
|
|
data = "a"
|
|
|
|
</file1>
|
2023-03-29 09:20:54 +08:00
|
|
|
<file2 name="%LOGDIR/config%TESTNUMBER-b">
|
2020-03-20 17:34:18 +08:00
|
|
|
--next
|
2021-03-13 00:38:26 +08:00
|
|
|
url = %HOSTIP:%HTTPPORT/%TESTNUMBER0002
|
2020-03-20 17:34:18 +08:00
|
|
|
header = "b: b"
|
|
|
|
data = "b"
|
|
|
|
</file2>
|
|
|
|
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
Two -K uses with --next and then one on cmdline
|
|
|
|
</name>
|
|
|
|
<command>
|
2023-03-29 09:20:54 +08:00
|
|
|
-K %LOGDIR/config%TESTNUMBER-a -K %LOGDIR/config%TESTNUMBER-b --next -d c %HOSTIP:%HTTPPORT/%TESTNUMBER0003 -H "c: c"
|
2020-03-20 17:34:18 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol nonewline="yes">
|
2021-03-13 00:38:26 +08:00
|
|
|
POST /%TESTNUMBER0001 HTTP/1.1
|
2020-03-20 17:34:18 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2020-03-20 17:34:18 +08:00
|
|
|
Accept: */*
|
|
|
|
a: a
|
|
|
|
Content-Length: 1
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
aPOST /%TESTNUMBER0002 HTTP/1.1
|
2020-03-20 17:34:18 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2020-03-20 17:34:18 +08:00
|
|
|
Accept: */*
|
|
|
|
b: b
|
|
|
|
Content-Length: 1
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
bPOST /%TESTNUMBER0003 HTTP/1.1
|
2020-03-20 17:34:18 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2020-03-20 17:34:18 +08:00
|
|
|
Accept: */*
|
|
|
|
c: c
|
|
|
|
Content-Length: 1
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
|
|
|
c
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|