2020-03-20 05:34:18 -04: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>
|
2021-03-12 11:38:26 -05:00
|
|
|
<file1 name="log/config%TESTNUMBER-a">
|
2020-03-20 05:34:18 -04:00
|
|
|
--next
|
2021-03-12 11:38:26 -05:00
|
|
|
url = %HOSTIP:%HTTPPORT/%TESTNUMBER0001
|
2020-03-20 05:34:18 -04:00
|
|
|
header = "a: a"
|
|
|
|
data = "a"
|
|
|
|
</file1>
|
2021-03-12 11:38:26 -05:00
|
|
|
<file2 name="log/config%TESTNUMBER-b">
|
2020-03-20 05:34:18 -04:00
|
|
|
--next
|
2021-03-12 11:38:26 -05:00
|
|
|
url = %HOSTIP:%HTTPPORT/%TESTNUMBER0002
|
2020-03-20 05:34:18 -04:00
|
|
|
header = "b: b"
|
|
|
|
data = "b"
|
|
|
|
</file2>
|
|
|
|
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
Two -K uses with --next and then one on cmdline
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-12 11:38:26 -05:00
|
|
|
-K log/config%TESTNUMBER-a -K log/config%TESTNUMBER-b --next -d c %HOSTIP:%HTTPPORT/%TESTNUMBER0003 -H "c: c"
|
2020-03-20 05:34:18 -04:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol nonewline="yes">
|
2021-03-12 11:38:26 -05:00
|
|
|
POST /%TESTNUMBER0001 HTTP/1.1
|
2020-03-20 05:34:18 -04:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 07:45:24 -04:00
|
|
|
User-Agent: curl/%VERSION
|
2020-03-20 05:34:18 -04:00
|
|
|
Accept: */*
|
|
|
|
a: a
|
|
|
|
Content-Length: 1
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
2021-03-12 11:38:26 -05:00
|
|
|
aPOST /%TESTNUMBER0002 HTTP/1.1
|
2020-03-20 05:34:18 -04:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 07:45:24 -04:00
|
|
|
User-Agent: curl/%VERSION
|
2020-03-20 05:34:18 -04:00
|
|
|
Accept: */*
|
|
|
|
b: b
|
|
|
|
Content-Length: 1
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
2021-03-12 11:38:26 -05:00
|
|
|
bPOST /%TESTNUMBER0003 HTTP/1.1
|
2020-03-20 05:34:18 -04:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 07:45:24 -04:00
|
|
|
User-Agent: curl/%VERSION
|
2020-03-20 05:34:18 -04:00
|
|
|
Accept: */*
|
|
|
|
c: c
|
|
|
|
Content-Length: 1
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
|
|
|
c
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|