1*6236dae4SAndroid Build Coastguard Worker<testcase> 2*6236dae4SAndroid Build Coastguard Worker<info> 3*6236dae4SAndroid Build Coastguard Worker<keywords> 4*6236dae4SAndroid Build Coastguard WorkerHTTP 5*6236dae4SAndroid Build Coastguard WorkerHTTP POST 6*6236dae4SAndroid Build Coastguard WorkerExpect: 100-continue 7*6236dae4SAndroid Build Coastguard Worker</keywords> 8*6236dae4SAndroid Build Coastguard Worker</info> 9*6236dae4SAndroid Build Coastguard Worker 10*6236dae4SAndroid Build Coastguard Worker# 11*6236dae4SAndroid Build Coastguard Worker# Server-side 12*6236dae4SAndroid Build Coastguard Worker<reply> 13*6236dae4SAndroid Build Coastguard Worker<data nocheck="yes"> 14*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 404 NOOOOOOOOO 15*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT 16*6236dae4SAndroid Build Coastguard WorkerServer: test-server/fake 17*6236dae4SAndroid Build Coastguard WorkerContent-Length: 6 18*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html 19*6236dae4SAndroid Build Coastguard Worker 20*6236dae4SAndroid Build Coastguard Worker-foo- 21*6236dae4SAndroid Build Coastguard Worker</data> 22*6236dae4SAndroid Build Coastguard Worker 23*6236dae4SAndroid Build Coastguard Worker<data1> 24*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 404 NEITHER 25*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT 26*6236dae4SAndroid Build Coastguard WorkerServer: test-server/fake 27*6236dae4SAndroid Build Coastguard WorkerContent-Length: 6 28*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html 29*6236dae4SAndroid Build Coastguard Worker 30*6236dae4SAndroid Build Coastguard Worker-foo- 31*6236dae4SAndroid Build Coastguard Worker</data1> 32*6236dae4SAndroid Build Coastguard Worker 33*6236dae4SAndroid Build Coastguard Worker# we use skip to make the test server never read the full payload off 34*6236dae4SAndroid Build Coastguard Worker# the socket and instead return the response at once 35*6236dae4SAndroid Build Coastguard Worker<servercmd> 36*6236dae4SAndroid Build Coastguard Workerskip: 1053700 37*6236dae4SAndroid Build Coastguard Worker</servercmd> 38*6236dae4SAndroid Build Coastguard Worker</reply> 39*6236dae4SAndroid Build Coastguard Worker 40*6236dae4SAndroid Build Coastguard Worker# 41*6236dae4SAndroid Build Coastguard Worker# Client-side 42*6236dae4SAndroid Build Coastguard Worker<client> 43*6236dae4SAndroid Build Coastguard Worker# 1053700 x 'x' 44*6236dae4SAndroid Build Coastguard Worker<file name="%LOGDIR/file%TESTNUMBER"> 45*6236dae4SAndroid Build Coastguard Worker%repeat[1053700 x x]% 46*6236dae4SAndroid Build Coastguard Worker</file> 47*6236dae4SAndroid Build Coastguard Worker<server> 48*6236dae4SAndroid Build Coastguard Workerhttp 49*6236dae4SAndroid Build Coastguard Worker</server> 50*6236dae4SAndroid Build Coastguard Worker<name> 51*6236dae4SAndroid Build Coastguard WorkerHTTP POST expect 100-continue with a 404 52*6236dae4SAndroid Build Coastguard Worker</name> 53*6236dae4SAndroid Build Coastguard Worker <command option="no-output"> 54*6236dae4SAndroid Build Coastguard Worker-d @%LOGDIR/file%TESTNUMBER --expect100-timeout 99 http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001 55*6236dae4SAndroid Build Coastguard Worker</command> 56*6236dae4SAndroid Build Coastguard Worker</client> 57*6236dae4SAndroid Build Coastguard Worker 58*6236dae4SAndroid Build Coastguard Worker# 59*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot" 60*6236dae4SAndroid Build Coastguard Worker<verify> 61*6236dae4SAndroid Build Coastguard Worker<stdout> 62*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 404 NOOOOOOOOO 63*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT 64*6236dae4SAndroid Build Coastguard WorkerServer: test-server/fake 65*6236dae4SAndroid Build Coastguard WorkerContent-Length: 6 66*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html 67*6236dae4SAndroid Build Coastguard Worker 68*6236dae4SAndroid Build Coastguard Worker-foo- 69*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 404 NEITHER 70*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT 71*6236dae4SAndroid Build Coastguard WorkerServer: test-server/fake 72*6236dae4SAndroid Build Coastguard WorkerContent-Length: 6 73*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html 74*6236dae4SAndroid Build Coastguard Worker 75*6236dae4SAndroid Build Coastguard Worker-foo- 76*6236dae4SAndroid Build Coastguard Worker</stdout> 77*6236dae4SAndroid Build Coastguard Worker<protocol> 78*6236dae4SAndroid Build Coastguard WorkerPOST /%TESTNUMBER HTTP/1.1 79*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 80*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 81*6236dae4SAndroid Build Coastguard WorkerAccept: */* 82*6236dae4SAndroid Build Coastguard WorkerContent-Length: 1053700 83*6236dae4SAndroid Build Coastguard WorkerContent-Type: application/x-www-form-urlencoded 84*6236dae4SAndroid Build Coastguard WorkerExpect: 100-continue 85*6236dae4SAndroid Build Coastguard Worker 86*6236dae4SAndroid Build Coastguard WorkerPOST /%TESTNUMBER0001 HTTP/1.1 87*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 88*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 89*6236dae4SAndroid Build Coastguard WorkerAccept: */* 90*6236dae4SAndroid Build Coastguard WorkerContent-Length: 1053700 91*6236dae4SAndroid Build Coastguard WorkerContent-Type: application/x-www-form-urlencoded 92*6236dae4SAndroid Build Coastguard WorkerExpect: 100-continue 93*6236dae4SAndroid Build Coastguard Worker 94*6236dae4SAndroid Build Coastguard Worker</protocol> 95*6236dae4SAndroid Build Coastguard Worker</verify> 96*6236dae4SAndroid Build Coastguard Worker</testcase> 97