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 proxy 6*6236dae4SAndroid Build Coastguard WorkerHTTP Basic auth 7*6236dae4SAndroid Build Coastguard WorkerHTTP proxy Basic auth 8*6236dae4SAndroid Build Coastguard Workerfollowlocation 9*6236dae4SAndroid Build Coastguard Worker--anyauth 10*6236dae4SAndroid Build Coastguard Worker</keywords> 11*6236dae4SAndroid Build Coastguard Worker</info> 12*6236dae4SAndroid Build Coastguard Worker 13*6236dae4SAndroid Build Coastguard Worker# 14*6236dae4SAndroid Build Coastguard Worker# Server-side 15*6236dae4SAndroid Build Coastguard Worker<reply> 16*6236dae4SAndroid Build Coastguard Worker<data1000 nocheck="yes"> 17*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 Authorization Required 18*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Basic 19*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/plain 20*6236dae4SAndroid Build Coastguard WorkerContent-Length: 0 21*6236dae4SAndroid Build Coastguard Worker 22*6236dae4SAndroid Build Coastguard Worker</data1000> 23*6236dae4SAndroid Build Coastguard Worker<data1001 nocheck="yes"> 24*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 302 OK 25*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT 26*6236dae4SAndroid Build Coastguard WorkerServer: test-server/fake swsclose 27*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/plain 28*6236dae4SAndroid Build Coastguard WorkerFunny-head: yesyes 29*6236dae4SAndroid Build Coastguard WorkerLocation: http://goto.second.host.now/%TESTNUMBER1002 30*6236dae4SAndroid Build Coastguard WorkerContent-Length: 0 31*6236dae4SAndroid Build Coastguard WorkerConnection: close 32*6236dae4SAndroid Build Coastguard Worker 33*6236dae4SAndroid Build Coastguard Worker</data1001> 34*6236dae4SAndroid Build Coastguard Worker<data1002 nocheck="yes"> 35*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK 36*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT 37*6236dae4SAndroid Build Coastguard WorkerServer: test-server/fake swsclose 38*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/plain 39*6236dae4SAndroid Build Coastguard WorkerFunny-head: yesyes 40*6236dae4SAndroid Build Coastguard WorkerContent-Length: 9 41*6236dae4SAndroid Build Coastguard Worker 42*6236dae4SAndroid Build Coastguard Workercontents 43*6236dae4SAndroid Build Coastguard Worker</data1002> 44*6236dae4SAndroid Build Coastguard Worker 45*6236dae4SAndroid Build Coastguard Worker<datacheck> 46*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 Authorization Required 47*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Basic 48*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/plain 49*6236dae4SAndroid Build Coastguard WorkerContent-Length: 0 50*6236dae4SAndroid Build Coastguard Worker 51*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 302 OK 52*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT 53*6236dae4SAndroid Build Coastguard WorkerServer: test-server/fake swsclose 54*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/plain 55*6236dae4SAndroid Build Coastguard WorkerFunny-head: yesyes 56*6236dae4SAndroid Build Coastguard WorkerLocation: http://goto.second.host.now/%TESTNUMBER1002 57*6236dae4SAndroid Build Coastguard WorkerContent-Length: 0 58*6236dae4SAndroid Build Coastguard WorkerConnection: close 59*6236dae4SAndroid Build Coastguard Worker 60*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK 61*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT 62*6236dae4SAndroid Build Coastguard WorkerServer: test-server/fake swsclose 63*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/plain 64*6236dae4SAndroid Build Coastguard WorkerFunny-head: yesyes 65*6236dae4SAndroid Build Coastguard WorkerContent-Length: 9 66*6236dae4SAndroid Build Coastguard Worker 67*6236dae4SAndroid Build Coastguard Workercontents 68*6236dae4SAndroid Build Coastguard Worker</datacheck> 69*6236dae4SAndroid Build Coastguard Worker</reply> 70*6236dae4SAndroid Build Coastguard Worker 71*6236dae4SAndroid Build Coastguard Worker# 72*6236dae4SAndroid Build Coastguard Worker# Client-side 73*6236dae4SAndroid Build Coastguard Worker<client> 74*6236dae4SAndroid Build Coastguard Worker<server> 75*6236dae4SAndroid Build Coastguard Workerhttp 76*6236dae4SAndroid Build Coastguard Worker</server> 77*6236dae4SAndroid Build Coastguard Worker<name> 78*6236dae4SAndroid Build Coastguard WorkerHTTP, proxy with --anyauth and Location: to new host 79*6236dae4SAndroid Build Coastguard Worker</name> 80*6236dae4SAndroid Build Coastguard Worker<command> 81*6236dae4SAndroid Build Coastguard Workerhttp://first.host.it.is/we/want/that/page/%TESTNUMBER1000 -x %HOSTIP:%HTTPPORT --user iam:myself --location --anyauth 82*6236dae4SAndroid Build Coastguard Worker</command> 83*6236dae4SAndroid Build Coastguard Worker<features> 84*6236dae4SAndroid Build Coastguard Workerproxy 85*6236dae4SAndroid Build Coastguard Worker</features> 86*6236dae4SAndroid Build Coastguard Worker</client> 87*6236dae4SAndroid Build Coastguard Worker 88*6236dae4SAndroid Build Coastguard Worker# 89*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot" 90*6236dae4SAndroid Build Coastguard Worker<verify> 91*6236dae4SAndroid Build Coastguard Worker<protocol> 92*6236dae4SAndroid Build Coastguard WorkerGET http://first.host.it.is/we/want/that/page/%TESTNUMBER1000 HTTP/1.1 93*6236dae4SAndroid Build Coastguard WorkerHost: first.host.it.is 94*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 95*6236dae4SAndroid Build Coastguard WorkerAccept: */* 96*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive 97*6236dae4SAndroid Build Coastguard Worker 98*6236dae4SAndroid Build Coastguard WorkerGET http://first.host.it.is/we/want/that/page/%TESTNUMBER1000 HTTP/1.1 99*6236dae4SAndroid Build Coastguard WorkerHost: first.host.it.is 100*6236dae4SAndroid Build Coastguard WorkerAuthorization: Basic aWFtOm15c2VsZg== 101*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 102*6236dae4SAndroid Build Coastguard WorkerAccept: */* 103*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive 104*6236dae4SAndroid Build Coastguard Worker 105*6236dae4SAndroid Build Coastguard WorkerGET http://goto.second.host.now/%TESTNUMBER1002 HTTP/1.1 106*6236dae4SAndroid Build Coastguard WorkerHost: goto.second.host.now 107*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 108*6236dae4SAndroid Build Coastguard WorkerAccept: */* 109*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive 110*6236dae4SAndroid Build Coastguard Worker 111*6236dae4SAndroid Build Coastguard Worker</protocol> 112*6236dae4SAndroid Build Coastguard Worker</verify> 113*6236dae4SAndroid Build Coastguard Worker</testcase> 114