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 proxy 7*6236dae4SAndroid Build Coastguard WorkerHTTP proxy Digest auth 8*6236dae4SAndroid Build Coastguard WorkerHTTP Digest auth 9*6236dae4SAndroid Build Coastguard Worker</keywords> 10*6236dae4SAndroid Build Coastguard Worker</info> 11*6236dae4SAndroid Build Coastguard Worker 12*6236dae4SAndroid Build Coastguard Worker# Server-side 13*6236dae4SAndroid Build Coastguard Worker<reply> 14*6236dae4SAndroid Build Coastguard Worker 15*6236dae4SAndroid Build Coastguard Worker# this is returned first since we get no proxy-auth 16*6236dae4SAndroid Build Coastguard Worker<data> 17*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 407 Authorization Required to proxy me my dear swsclose 18*6236dae4SAndroid Build Coastguard WorkerProxy-Authenticate: Digest realm="weirdorealm", nonce="12345" 19*6236dae4SAndroid Build Coastguard Worker 20*6236dae4SAndroid Build Coastguard WorkerAnd you should ignore this data. 21*6236dae4SAndroid Build Coastguard Worker</data> 22*6236dae4SAndroid Build Coastguard Worker 23*6236dae4SAndroid Build Coastguard Worker# then this is returned since we get no server-auth 24*6236dae4SAndroid Build Coastguard Worker<data1000> 25*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 Authorization to the remote host as well swsbounce swsclose 26*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Digest realm="realmweirdo", nonce="123456" 27*6236dae4SAndroid Build Coastguard Worker 28*6236dae4SAndroid Build Coastguard Workeryou should ignore this data too 29*6236dae4SAndroid Build Coastguard Worker</data1000> 30*6236dae4SAndroid Build Coastguard Worker 31*6236dae4SAndroid Build Coastguard Worker<data1001> 32*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK swsclose 33*6236dae4SAndroid Build Coastguard WorkerServer: no 34*6236dae4SAndroid Build Coastguard WorkerContent-Length: 15 35*6236dae4SAndroid Build Coastguard Worker 36*6236dae4SAndroid Build Coastguard WorkerNice auth sir! 37*6236dae4SAndroid Build Coastguard Worker</data1001> 38*6236dae4SAndroid Build Coastguard Worker 39*6236dae4SAndroid Build Coastguard Worker<datacheck> 40*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 407 Authorization Required to proxy me my dear swsclose 41*6236dae4SAndroid Build Coastguard WorkerProxy-Authenticate: Digest realm="weirdorealm", nonce="12345" 42*6236dae4SAndroid Build Coastguard Worker 43*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 Authorization to the remote host as well swsbounce swsclose 44*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Digest realm="realmweirdo", nonce="123456" 45*6236dae4SAndroid Build Coastguard Worker 46*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK swsclose 47*6236dae4SAndroid Build Coastguard WorkerServer: no 48*6236dae4SAndroid Build Coastguard WorkerContent-Length: 15 49*6236dae4SAndroid Build Coastguard Worker 50*6236dae4SAndroid Build Coastguard WorkerNice auth sir! 51*6236dae4SAndroid Build Coastguard Worker</datacheck> 52*6236dae4SAndroid Build Coastguard Worker</reply> 53*6236dae4SAndroid Build Coastguard Worker 54*6236dae4SAndroid Build Coastguard Worker# Client-side 55*6236dae4SAndroid Build Coastguard Worker<client> 56*6236dae4SAndroid Build Coastguard Worker<server> 57*6236dae4SAndroid Build Coastguard Workerhttp 58*6236dae4SAndroid Build Coastguard Worker</server> 59*6236dae4SAndroid Build Coastguard Worker<features> 60*6236dae4SAndroid Build Coastguard Worker!SSPI 61*6236dae4SAndroid Build Coastguard Workercrypto 62*6236dae4SAndroid Build Coastguard Workerproxy 63*6236dae4SAndroid Build Coastguard Worker</features> 64*6236dae4SAndroid Build Coastguard Worker<name> 65*6236dae4SAndroid Build Coastguard WorkerHTTP with proxy-requiring-Digest to site-requiring-Digest 66*6236dae4SAndroid Build Coastguard Worker</name> 67*6236dae4SAndroid Build Coastguard Worker<command> 68*6236dae4SAndroid Build Coastguard Workerhttp://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-digest --digest --user digest:alot 69*6236dae4SAndroid Build Coastguard Worker</command> 70*6236dae4SAndroid Build Coastguard Worker</client> 71*6236dae4SAndroid Build Coastguard Worker 72*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot" 73*6236dae4SAndroid Build Coastguard Worker<verify> 74*6236dae4SAndroid Build Coastguard Worker<protocol> 75*6236dae4SAndroid Build Coastguard WorkerGET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1 76*6236dae4SAndroid Build Coastguard WorkerHost: data.from.server.requiring.digest.hohoho.com 77*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 78*6236dae4SAndroid Build Coastguard WorkerAccept: */* 79*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive 80*6236dae4SAndroid Build Coastguard Worker 81*6236dae4SAndroid Build Coastguard WorkerGET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1 82*6236dae4SAndroid Build Coastguard WorkerHost: data.from.server.requiring.digest.hohoho.com 83*6236dae4SAndroid Build Coastguard WorkerProxy-Authorization: Digest username="foo", realm="weirdorealm", nonce="12345", uri="/%TESTNUMBER", response="fb8608e00ad9239a3dedb14bc8575976" 84*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 85*6236dae4SAndroid Build Coastguard WorkerAccept: */* 86*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive 87*6236dae4SAndroid Build Coastguard Worker 88*6236dae4SAndroid Build Coastguard WorkerGET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1 89*6236dae4SAndroid Build Coastguard WorkerHost: data.from.server.requiring.digest.hohoho.com 90*6236dae4SAndroid Build Coastguard WorkerProxy-Authorization: Digest username="foo", realm="weirdorealm", nonce="12345", uri="/%TESTNUMBER", response="fb8608e00ad9239a3dedb14bc8575976" 91*6236dae4SAndroid Build Coastguard WorkerAuthorization: Digest username="digest", realm="realmweirdo", nonce="123456", uri="/%TESTNUMBER", response="ca87f2d768a231e2d637a55698d5c416" 92*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 93*6236dae4SAndroid Build Coastguard WorkerAccept: */* 94*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive 95*6236dae4SAndroid Build Coastguard Worker 96*6236dae4SAndroid Build Coastguard Worker</protocol> 97*6236dae4SAndroid Build Coastguard Worker</verify> 98*6236dae4SAndroid Build Coastguard Worker</testcase> 99