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 Workerfollowlocation 6*6236dae4SAndroid Build Coastguard Worker</keywords> 7*6236dae4SAndroid Build Coastguard Worker</info> 8*6236dae4SAndroid Build Coastguard Worker 9*6236dae4SAndroid Build Coastguard Worker# Server-side 10*6236dae4SAndroid Build Coastguard Worker<reply> 11*6236dae4SAndroid Build Coastguard Worker<data nocheck="yes"> 12*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 302 OK swsclose 13*6236dae4SAndroid Build Coastguard WorkerLocation: data2.html/%TESTNUMBER0002 14*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT 15*6236dae4SAndroid Build Coastguard WorkerConnection: close 16*6236dae4SAndroid Build Coastguard Worker 17*6236dae4SAndroid Build Coastguard Worker</data> 18*6236dae4SAndroid Build Coastguard Worker<data2 nocheck="yes"> 19*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK swsclose 20*6236dae4SAndroid Build Coastguard WorkerLocation: this should be ignored 21*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT 22*6236dae4SAndroid Build Coastguard WorkerConnection: close 23*6236dae4SAndroid Build Coastguard Worker 24*6236dae4SAndroid Build Coastguard Workerbody 25*6236dae4SAndroid Build Coastguard Worker</data2> 26*6236dae4SAndroid Build Coastguard Worker</reply> 27*6236dae4SAndroid Build Coastguard Worker 28*6236dae4SAndroid Build Coastguard Worker# Client-side 29*6236dae4SAndroid Build Coastguard Worker<client> 30*6236dae4SAndroid Build Coastguard Worker<server> 31*6236dae4SAndroid Build Coastguard Workerhttp 32*6236dae4SAndroid Build Coastguard Worker</server> 33*6236dae4SAndroid Build Coastguard Worker 34*6236dae4SAndroid Build Coastguard Worker<name> 35*6236dae4SAndroid Build Coastguard WorkerPre-request callback for HTTP with location following 36*6236dae4SAndroid Build Coastguard Worker</name> 37*6236dae4SAndroid Build Coastguard Worker<tool> 38*6236dae4SAndroid Build Coastguard Workerlibprereq 39*6236dae4SAndroid Build Coastguard Worker</tool> 40*6236dae4SAndroid Build Coastguard Worker 41*6236dae4SAndroid Build Coastguard Worker<command> 42*6236dae4SAndroid Build Coastguard Worker%HOSTIP:%HTTPPORT/%TESTNUMBER#redir 43*6236dae4SAndroid Build Coastguard Worker</command> 44*6236dae4SAndroid Build Coastguard Worker</client> 45*6236dae4SAndroid Build Coastguard Worker 46*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot" 47*6236dae4SAndroid Build Coastguard Worker<verify> 48*6236dae4SAndroid Build Coastguard Worker<stripfile> 49*6236dae4SAndroid Build Coastguard Workers/^Local port = \d+/Local port = stripped/ 50*6236dae4SAndroid Build Coastguard Worker</stripfile> 51*6236dae4SAndroid Build Coastguard Worker<stdout> 52*6236dae4SAndroid Build Coastguard WorkerConnected to %HOSTIP 53*6236dae4SAndroid Build Coastguard WorkerConnected from %CLIENTIP 54*6236dae4SAndroid Build Coastguard WorkerRemote port = %HTTPPORT 55*6236dae4SAndroid Build Coastguard WorkerLocal port = stripped 56*6236dae4SAndroid Build Coastguard WorkerReturning = 0 57*6236dae4SAndroid Build Coastguard WorkerConnected to %HOSTIP 58*6236dae4SAndroid Build Coastguard WorkerConnected from %CLIENTIP 59*6236dae4SAndroid Build Coastguard WorkerRemote port = %HTTPPORT 60*6236dae4SAndroid Build Coastguard WorkerLocal port = stripped 61*6236dae4SAndroid Build Coastguard WorkerReturning = 0 62*6236dae4SAndroid Build Coastguard Worker</stdout> 63*6236dae4SAndroid Build Coastguard Worker</verify> 64*6236dae4SAndroid Build Coastguard Worker</testcase> 65