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 Basic auth 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> 12*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 Authorization Required swsbounce 13*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Darwin) PHP/4.1.2 14*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts" 15*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Basic realm="gimme all yer s3cr3ts" 16*6236dae4SAndroid Build Coastguard WorkerContent-Length: 26 17*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 18*6236dae4SAndroid Build Coastguard Worker 19*6236dae4SAndroid Build Coastguard WorkerThis is not the real page 20*6236dae4SAndroid Build Coastguard Worker</data> 21*6236dae4SAndroid Build Coastguard Worker 22*6236dae4SAndroid Build Coastguard Worker# This is supposed to be returned when the server gets a 23*6236dae4SAndroid Build Coastguard Worker# Authorization: Digest line passed-in from the client 24*6236dae4SAndroid Build Coastguard Worker<data1> 25*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK 26*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Darwin) PHP/4.1.2 27*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 28*6236dae4SAndroid Build Coastguard WorkerContent-Length: 23 29*6236dae4SAndroid Build Coastguard WorkerConnection: close 30*6236dae4SAndroid Build Coastguard Worker 31*6236dae4SAndroid Build Coastguard WorkerThis IS the real page! 32*6236dae4SAndroid Build Coastguard Worker</data1> 33*6236dae4SAndroid Build Coastguard Worker 34*6236dae4SAndroid Build Coastguard Worker<datacheck> 35*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 Authorization Required swsbounce 36*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Darwin) PHP/4.1.2 37*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts" 38*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Basic realm="gimme all yer s3cr3ts" 39*6236dae4SAndroid Build Coastguard WorkerContent-Length: 26 40*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 41*6236dae4SAndroid Build Coastguard Worker 42*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK 43*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Darwin) PHP/4.1.2 44*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 45*6236dae4SAndroid Build Coastguard WorkerContent-Length: 23 46*6236dae4SAndroid Build Coastguard WorkerConnection: close 47*6236dae4SAndroid Build Coastguard Worker 48*6236dae4SAndroid Build Coastguard WorkerThis IS the real page! 49*6236dae4SAndroid Build Coastguard Worker</datacheck> 50*6236dae4SAndroid Build Coastguard Worker</reply> 51*6236dae4SAndroid Build Coastguard Worker 52*6236dae4SAndroid Build Coastguard Worker# Client-Side 53*6236dae4SAndroid Build Coastguard Worker<client> 54*6236dae4SAndroid Build Coastguard Worker# require https because the code sets that as an acceptable redirect proto 55*6236dae4SAndroid Build Coastguard Worker<features> 56*6236dae4SAndroid Build Coastguard Workerhttps 57*6236dae4SAndroid Build Coastguard Worker</features> 58*6236dae4SAndroid Build Coastguard Worker<server> 59*6236dae4SAndroid Build Coastguard Workerhttp 60*6236dae4SAndroid Build Coastguard Worker</server> 61*6236dae4SAndroid Build Coastguard Worker<tool> 62*6236dae4SAndroid Build Coastguard Workerlib%TESTNUMBER 63*6236dae4SAndroid Build Coastguard Worker</tool> 64*6236dae4SAndroid Build Coastguard Worker 65*6236dae4SAndroid Build Coastguard Worker<name> 66*6236dae4SAndroid Build Coastguard WorkerHTTP auth without redirection protocols 67*6236dae4SAndroid Build Coastguard Worker</name> 68*6236dae4SAndroid Build Coastguard Worker<command> 69*6236dae4SAndroid Build Coastguard Workerhttp://%HOSTIP:%HTTPPORT/%TESTNUMBER 70*6236dae4SAndroid Build Coastguard Worker</command> 71*6236dae4SAndroid Build Coastguard Worker</client> 72*6236dae4SAndroid Build Coastguard Worker 73*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot" 74*6236dae4SAndroid Build Coastguard Worker<verify> 75*6236dae4SAndroid Build Coastguard Worker<protocol> 76*6236dae4SAndroid Build Coastguard WorkerGET /%TESTNUMBER HTTP/1.1 77*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 78*6236dae4SAndroid Build Coastguard WorkerAccept: */* 79*6236dae4SAndroid Build Coastguard Worker 80*6236dae4SAndroid Build Coastguard WorkerGET /%TESTNUMBER HTTP/1.1 81*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 82*6236dae4SAndroid Build Coastguard WorkerAuthorization: Basic dXNlcjpwYXNzd29yZA== 83*6236dae4SAndroid Build Coastguard WorkerAccept: */* 84*6236dae4SAndroid Build Coastguard Worker 85*6236dae4SAndroid Build Coastguard Worker</protocol> 86*6236dae4SAndroid Build Coastguard Worker</verify> 87*6236dae4SAndroid Build Coastguard Worker 88*6236dae4SAndroid Build Coastguard Worker</testcase> 89