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