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