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 GET 6*6236dae4SAndroid Build Coastguard WorkerHTTP Digest auth 7*6236dae4SAndroid Build Coastguard Worker--anyauth 8*6236dae4SAndroid Build Coastguard Worker</keywords> 9*6236dae4SAndroid Build Coastguard Worker</info> 10*6236dae4SAndroid Build Coastguard Worker 11*6236dae4SAndroid Build Coastguard Worker# Server-side 12*6236dae4SAndroid Build Coastguard Worker<reply> 13*6236dae4SAndroid Build Coastguard Worker<servercmd> 14*6236dae4SAndroid Build Coastguard Workerauth_required 15*6236dae4SAndroid Build Coastguard Worker</servercmd> 16*6236dae4SAndroid Build Coastguard Worker<data> 17*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 Authorization Required swsclose 18*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Darwin) PHP/4.1.2 19*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts" 20*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Basic realm="gimme all yer s3cr3ts" 21*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344" 22*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 23*6236dae4SAndroid Build Coastguard WorkerConnection: close 24*6236dae4SAndroid Build Coastguard Worker 25*6236dae4SAndroid Build Coastguard WorkerThis is not the real page 26*6236dae4SAndroid Build Coastguard Worker</data> 27*6236dae4SAndroid Build Coastguard Worker 28*6236dae4SAndroid Build Coastguard Worker# The second URL will get this response 29*6236dae4SAndroid Build Coastguard Worker<data1> 30*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 Authorization Required swsclose 31*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Darwin) PHP/4.1.2 32*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts" 33*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Basic realm="gimme all yer s3cr3ts" 34*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344" 35*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 36*6236dae4SAndroid Build Coastguard WorkerConnection: close 37*6236dae4SAndroid Build Coastguard Worker 38*6236dae4SAndroid Build Coastguard WorkerThis is not the real page 39*6236dae4SAndroid Build Coastguard Worker</data1> 40*6236dae4SAndroid Build Coastguard Worker 41*6236dae4SAndroid Build Coastguard Worker# This is supposed to be returned when the server gets a 42*6236dae4SAndroid Build Coastguard Worker# Authorization: Digest line passed-in from the client 43*6236dae4SAndroid Build Coastguard Worker<data1000> 44*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK swsclose 45*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Darwin) PHP/4.1.2 46*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 47*6236dae4SAndroid Build Coastguard WorkerContent-Length: 23 48*6236dae4SAndroid Build Coastguard WorkerConnection: close 49*6236dae4SAndroid Build Coastguard Worker 50*6236dae4SAndroid Build Coastguard WorkerThis IS the real page! 51*6236dae4SAndroid Build Coastguard Worker</data1000> 52*6236dae4SAndroid Build Coastguard Worker 53*6236dae4SAndroid Build Coastguard Worker# This is the second request 54*6236dae4SAndroid Build Coastguard Worker<data1001> 55*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK swsclose 56*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Darwin) PHP/4.1.2 57*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 58*6236dae4SAndroid Build Coastguard WorkerContent-Length: 23 59*6236dae4SAndroid Build Coastguard WorkerConnection: close 60*6236dae4SAndroid Build Coastguard Worker 61*6236dae4SAndroid Build Coastguard WorkerThis IS the second real page! 62*6236dae4SAndroid Build Coastguard Worker</data1001> 63*6236dae4SAndroid Build Coastguard Worker 64*6236dae4SAndroid Build Coastguard Worker<datacheck> 65*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 Authorization Required swsclose 66*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Darwin) PHP/4.1.2 67*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts" 68*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Basic realm="gimme all yer s3cr3ts" 69*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344" 70*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 71*6236dae4SAndroid Build Coastguard WorkerConnection: close 72*6236dae4SAndroid Build Coastguard Worker 73*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK swsclose 74*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Darwin) PHP/4.1.2 75*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 76*6236dae4SAndroid Build Coastguard WorkerContent-Length: 23 77*6236dae4SAndroid Build Coastguard WorkerConnection: close 78*6236dae4SAndroid Build Coastguard Worker 79*6236dae4SAndroid Build Coastguard WorkerThis IS the real page! 80*6236dae4SAndroid Build Coastguard Worker</datacheck> 81*6236dae4SAndroid Build Coastguard Worker 82*6236dae4SAndroid Build Coastguard Worker</reply> 83*6236dae4SAndroid Build Coastguard Worker 84*6236dae4SAndroid Build Coastguard Worker# Client-side 85*6236dae4SAndroid Build Coastguard Worker<client> 86*6236dae4SAndroid Build Coastguard Worker<server> 87*6236dae4SAndroid Build Coastguard Workerhttp 88*6236dae4SAndroid Build Coastguard Worker</server> 89*6236dae4SAndroid Build Coastguard Worker<features> 90*6236dae4SAndroid Build Coastguard Worker!SSPI 91*6236dae4SAndroid Build Coastguard Workercrypto 92*6236dae4SAndroid Build Coastguard Worker</features> 93*6236dae4SAndroid Build Coastguard Worker<name> 94*6236dae4SAndroid Build Coastguard WorkerHTTP GET with --anyauth with two URLs (picking Digest) 95*6236dae4SAndroid Build Coastguard Worker</name> 96*6236dae4SAndroid Build Coastguard Worker<command> 97*6236dae4SAndroid Build Coastguard Workerhttp://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:testpass --anyauth http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001 98*6236dae4SAndroid Build Coastguard Worker</command> 99*6236dae4SAndroid Build Coastguard Worker</client> 100*6236dae4SAndroid Build Coastguard Worker 101*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot" 102*6236dae4SAndroid Build Coastguard Worker<verify> 103*6236dae4SAndroid Build Coastguard Worker<protocol> 104*6236dae4SAndroid Build Coastguard WorkerGET /%TESTNUMBER HTTP/1.1 105*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 106*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 107*6236dae4SAndroid Build Coastguard WorkerAccept: */* 108*6236dae4SAndroid Build Coastguard Worker 109*6236dae4SAndroid Build Coastguard WorkerGET /%TESTNUMBER HTTP/1.1 110*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 111*6236dae4SAndroid Build Coastguard WorkerAuthorization: Digest username="testuser", realm="gimme all yer s3cr3ts", nonce="11223344", uri="/%TESTNUMBER", response="0390dbe89e31adca0413d11f91f30e7f" 112*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 113*6236dae4SAndroid Build Coastguard WorkerAccept: */* 114*6236dae4SAndroid Build Coastguard Worker 115*6236dae4SAndroid Build Coastguard WorkerGET /%TESTNUMBER0001 HTTP/1.1 116*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 117*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 118*6236dae4SAndroid Build Coastguard WorkerAccept: */* 119*6236dae4SAndroid Build Coastguard Worker 120*6236dae4SAndroid Build Coastguard WorkerGET /%TESTNUMBER0001 HTTP/1.1 121*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 122*6236dae4SAndroid Build Coastguard WorkerAuthorization: Digest username="testuser", realm="gimme all yer s3cr3ts", nonce="11223344", uri="/%TESTNUMBER0001", response="0085df91870374c8bf4e94415e7fbf8e" 123*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 124*6236dae4SAndroid Build Coastguard WorkerAccept: */* 125*6236dae4SAndroid Build Coastguard Worker 126*6236dae4SAndroid Build Coastguard Worker</protocol> 127*6236dae4SAndroid Build Coastguard Worker</verify> 128*6236dae4SAndroid Build Coastguard Worker</testcase> 129