1*6236dae4SAndroid Build Coastguard Worker<testcase> 2*6236dae4SAndroid Build Coastguard Worker# Derived from on https://github.com/curl/curl/issues/5120 3*6236dae4SAndroid Build Coastguard Worker<info> 4*6236dae4SAndroid Build Coastguard Worker<keywords> 5*6236dae4SAndroid Build Coastguard Worker--next 6*6236dae4SAndroid Build Coastguard Worker--config 7*6236dae4SAndroid Build Coastguard WorkerPOST 8*6236dae4SAndroid Build Coastguard Worker</keywords> 9*6236dae4SAndroid Build Coastguard Worker</info> 10*6236dae4SAndroid Build Coastguard Worker 11*6236dae4SAndroid Build Coastguard Worker# 12*6236dae4SAndroid Build Coastguard Worker# Server-side 13*6236dae4SAndroid Build Coastguard Worker<reply> 14*6236dae4SAndroid Build Coastguard Worker<data1> 15*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK 16*6236dae4SAndroid Build Coastguard WorkerContent-Length: 6 17*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/1 18*6236dae4SAndroid Build Coastguard Worker 19*6236dae4SAndroid Build Coastguard Worker-foo- 20*6236dae4SAndroid Build Coastguard Worker</data1> 21*6236dae4SAndroid Build Coastguard Worker<data2> 22*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK 23*6236dae4SAndroid Build Coastguard WorkerContent-Length: 6 24*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/2 25*6236dae4SAndroid Build Coastguard Worker 26*6236dae4SAndroid Build Coastguard Worker-foo- 27*6236dae4SAndroid Build Coastguard Worker</data2> 28*6236dae4SAndroid Build Coastguard Worker<data3> 29*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK 30*6236dae4SAndroid Build Coastguard WorkerContent-Length: 6 31*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/3 32*6236dae4SAndroid Build Coastguard Worker 33*6236dae4SAndroid Build Coastguard Worker-foo- 34*6236dae4SAndroid Build Coastguard Worker</data3> 35*6236dae4SAndroid Build Coastguard Worker</reply> 36*6236dae4SAndroid Build Coastguard Worker 37*6236dae4SAndroid Build Coastguard Worker# 38*6236dae4SAndroid Build Coastguard Worker# Client-side 39*6236dae4SAndroid Build Coastguard Worker<client> 40*6236dae4SAndroid Build Coastguard Worker<file1 name="%LOGDIR/config%TESTNUMBER"> 41*6236dae4SAndroid Build Coastguard Worker--next 42*6236dae4SAndroid Build Coastguard Workerurl = %HOSTIP:%HTTPPORT/%TESTNUMBER0001 43*6236dae4SAndroid Build Coastguard Workerheader = "a: a" 44*6236dae4SAndroid Build Coastguard Workerdata = "a" 45*6236dae4SAndroid Build Coastguard Worker--next 46*6236dae4SAndroid Build Coastguard Workerurl = %HOSTIP:%HTTPPORT/%TESTNUMBER0002 47*6236dae4SAndroid Build Coastguard Workerheader = "b: b" 48*6236dae4SAndroid Build Coastguard Workerdata = "b" 49*6236dae4SAndroid Build Coastguard Workerconfig = "%LOGDIR/config%TESTNUMBER-c" 50*6236dae4SAndroid Build Coastguard Worker</file1> 51*6236dae4SAndroid Build Coastguard Worker<file2 name="%LOGDIR/config%TESTNUMBER-c"> 52*6236dae4SAndroid Build Coastguard Worker--next 53*6236dae4SAndroid Build Coastguard Workerurl = %HOSTIP:%HTTPPORT/%TESTNUMBER0003 54*6236dae4SAndroid Build Coastguard Workerheader = "c: c" 55*6236dae4SAndroid Build Coastguard Workerdata = "c" 56*6236dae4SAndroid Build Coastguard Worker</file2> 57*6236dae4SAndroid Build Coastguard Worker 58*6236dae4SAndroid Build Coastguard Worker<server> 59*6236dae4SAndroid Build Coastguard Workerhttp 60*6236dae4SAndroid Build Coastguard Worker</server> 61*6236dae4SAndroid Build Coastguard Worker<name> 62*6236dae4SAndroid Build Coastguard WorkerUse -K with --next and --config from within 63*6236dae4SAndroid Build Coastguard Worker</name> 64*6236dae4SAndroid Build Coastguard Worker<command> 65*6236dae4SAndroid Build Coastguard Worker-K %LOGDIR/config%TESTNUMBER 66*6236dae4SAndroid Build Coastguard Worker</command> 67*6236dae4SAndroid Build Coastguard Worker</client> 68*6236dae4SAndroid Build Coastguard Worker 69*6236dae4SAndroid Build Coastguard Worker# 70*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot" 71*6236dae4SAndroid Build Coastguard Worker<verify> 72*6236dae4SAndroid Build Coastguard Worker<protocol nonewline="yes"> 73*6236dae4SAndroid Build Coastguard WorkerPOST /%TESTNUMBER0001 HTTP/1.1 74*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 75*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 76*6236dae4SAndroid Build Coastguard WorkerAccept: */* 77*6236dae4SAndroid Build Coastguard Workera: a 78*6236dae4SAndroid Build Coastguard WorkerContent-Length: 1 79*6236dae4SAndroid Build Coastguard WorkerContent-Type: application/x-www-form-urlencoded 80*6236dae4SAndroid Build Coastguard Worker 81*6236dae4SAndroid Build Coastguard WorkeraPOST /%TESTNUMBER0002 HTTP/1.1 82*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 83*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 84*6236dae4SAndroid Build Coastguard WorkerAccept: */* 85*6236dae4SAndroid Build Coastguard Workerb: b 86*6236dae4SAndroid Build Coastguard WorkerContent-Length: 1 87*6236dae4SAndroid Build Coastguard WorkerContent-Type: application/x-www-form-urlencoded 88*6236dae4SAndroid Build Coastguard Worker 89*6236dae4SAndroid Build Coastguard WorkerbPOST /%TESTNUMBER0003 HTTP/1.1 90*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 91*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 92*6236dae4SAndroid Build Coastguard WorkerAccept: */* 93*6236dae4SAndroid Build Coastguard Workerc: c 94*6236dae4SAndroid Build Coastguard WorkerContent-Length: 1 95*6236dae4SAndroid Build Coastguard WorkerContent-Type: application/x-www-form-urlencoded 96*6236dae4SAndroid Build Coastguard Worker 97*6236dae4SAndroid Build Coastguard Workerc 98*6236dae4SAndroid Build Coastguard Worker</protocol> 99*6236dae4SAndroid Build Coastguard Worker</verify> 100*6236dae4SAndroid Build Coastguard Worker</testcase> 101