xref: /curl/tests/data/test432 (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">
41--next
42url = %HOSTIP:%HTTPPORT/%TESTNUMBER0001
43header = "a: a"
44data = "a"
45--next
46url = %HOSTIP:%HTTPPORT/%TESTNUMBER0002
47header = "b: b"
48data = "b"
49config = "%LOGDIR/config%TESTNUMBER-c"
50</file1>
51<file2 name="%LOGDIR/config%TESTNUMBER-c">
52--next
53url = %HOSTIP:%HTTPPORT/%TESTNUMBER0003
54header = "c: c"
55data = "c"
56</file2>
57
58<server>
59http
60</server>
61<name>
62Use -K with --next and --config from within
63</name>
64<command>
65-K %LOGDIR/config%TESTNUMBER
66</command>
67</client>
68
69#
70# Verify data after the test has been "shot"
71<verify>
72<protocol nonewline="yes">
73POST /%TESTNUMBER0001 HTTP/1.1
74Host: %HOSTIP:%HTTPPORT
75User-Agent: curl/%VERSION
76Accept: */*
77a: a
78Content-Length: 1
79Content-Type: application/x-www-form-urlencoded
80
81aPOST /%TESTNUMBER0002 HTTP/1.1
82Host: %HOSTIP:%HTTPPORT
83User-Agent: curl/%VERSION
84Accept: */*
85b: b
86Content-Length: 1
87Content-Type: application/x-www-form-urlencoded
88
89bPOST /%TESTNUMBER0003 HTTP/1.1
90Host: %HOSTIP:%HTTPPORT
91User-Agent: curl/%VERSION
92Accept: */*
93c: c
94Content-Length: 1
95Content-Type: application/x-www-form-urlencoded
96
97c
98</protocol>
99</verify>
100</testcase>
101