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