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 CONNECT 7*6236dae4SAndroid Build Coastguard WorkerHTTP proxy 8*6236dae4SAndroid Build Coastguard Workerproxytunnel 9*6236dae4SAndroid Build Coastguard WorkerHTTP proxy Digest auth 10*6236dae4SAndroid Build Coastguard Worker</keywords> 11*6236dae4SAndroid Build Coastguard Worker</info> 12*6236dae4SAndroid Build Coastguard Worker 13*6236dae4SAndroid Build Coastguard Worker# Server-side 14*6236dae4SAndroid Build Coastguard Worker<reply> 15*6236dae4SAndroid Build Coastguard Worker<servercmd> 16*6236dae4SAndroid Build Coastguard Workerconnection-monitor 17*6236dae4SAndroid Build Coastguard Workerauth_required 18*6236dae4SAndroid Build Coastguard Worker</servercmd> 19*6236dae4SAndroid Build Coastguard Worker 20*6236dae4SAndroid Build Coastguard Worker 21*6236dae4SAndroid Build Coastguard Worker# this is returned first since we get no proxy-auth 22*6236dae4SAndroid Build Coastguard Worker<connect> 23*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 407 Authorization Required to proxy me my dear 24*6236dae4SAndroid Build Coastguard WorkerProxy-Authenticate: Digest realm="weirdorealm", nonce="12345" 25*6236dae4SAndroid Build Coastguard WorkerContent-Length: 33 26*6236dae4SAndroid Build Coastguard Worker 27*6236dae4SAndroid Build Coastguard WorkerAnd you should ignore this data. 28*6236dae4SAndroid Build Coastguard Worker</connect> 29*6236dae4SAndroid Build Coastguard Worker 30*6236dae4SAndroid Build Coastguard Worker# this is returned when we get a GET! 31*6236dae4SAndroid Build Coastguard Worker<data2> 32*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK 33*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT 34*6236dae4SAndroid Build Coastguard WorkerContent-Length: 7 35*6236dae4SAndroid Build Coastguard WorkerConnection: close 36*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html 37*6236dae4SAndroid Build Coastguard WorkerFunny-head: yesyes 38*6236dae4SAndroid Build Coastguard Worker 39*6236dae4SAndroid Build Coastguard Workerdaniel 40*6236dae4SAndroid Build Coastguard Worker</data2> 41*6236dae4SAndroid Build Coastguard Worker 42*6236dae4SAndroid Build Coastguard Worker# then this is returned when we get proxy-auth 43*6236dae4SAndroid Build Coastguard Worker<connect1000> 44*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK swsbounce 45*6236dae4SAndroid Build Coastguard WorkerServer: no 46*6236dae4SAndroid Build Coastguard Worker 47*6236dae4SAndroid Build Coastguard Worker</connect1000> 48*6236dae4SAndroid Build Coastguard Worker 49*6236dae4SAndroid Build Coastguard Worker<datacheck> 50*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 407 Authorization Required to proxy me my dear 51*6236dae4SAndroid Build Coastguard WorkerProxy-Authenticate: Digest realm="weirdorealm", nonce="12345" 52*6236dae4SAndroid Build Coastguard WorkerContent-Length: 33 53*6236dae4SAndroid Build Coastguard Worker 54*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK swsbounce 55*6236dae4SAndroid Build Coastguard WorkerServer: no 56*6236dae4SAndroid Build Coastguard Worker 57*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK 58*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT 59*6236dae4SAndroid Build Coastguard WorkerContent-Length: 7 60*6236dae4SAndroid Build Coastguard WorkerConnection: close 61*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html 62*6236dae4SAndroid Build Coastguard WorkerFunny-head: yesyes 63*6236dae4SAndroid Build Coastguard Worker 64*6236dae4SAndroid Build Coastguard Workerdaniel 65*6236dae4SAndroid Build Coastguard Worker</datacheck> 66*6236dae4SAndroid Build Coastguard Worker</reply> 67*6236dae4SAndroid Build Coastguard Worker 68*6236dae4SAndroid Build Coastguard Worker# Client-side 69*6236dae4SAndroid Build Coastguard Worker<client> 70*6236dae4SAndroid Build Coastguard Worker<server> 71*6236dae4SAndroid Build Coastguard Workerhttp 72*6236dae4SAndroid Build Coastguard Worker</server> 73*6236dae4SAndroid Build Coastguard Worker<features> 74*6236dae4SAndroid Build Coastguard Worker!SSPI 75*6236dae4SAndroid Build Coastguard Workercrypto 76*6236dae4SAndroid Build Coastguard Workerproxy 77*6236dae4SAndroid Build Coastguard Worker</features> 78*6236dae4SAndroid Build Coastguard Worker<name> 79*6236dae4SAndroid Build Coastguard WorkerHTTP proxy CONNECT auth Digest 80*6236dae4SAndroid Build Coastguard Worker</name> 81*6236dae4SAndroid Build Coastguard Worker<command> 82*6236dae4SAndroid Build Coastguard Workerhttp://test.remote.haxx.se.%TESTNUMBER:8990/path/%TESTNUMBER0002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-digest --proxytunnel 83*6236dae4SAndroid Build Coastguard Worker</command> 84*6236dae4SAndroid Build Coastguard Worker</client> 85*6236dae4SAndroid Build Coastguard Worker 86*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot" 87*6236dae4SAndroid Build Coastguard Worker<verify> 88*6236dae4SAndroid Build Coastguard Worker<protocol> 89*6236dae4SAndroid Build Coastguard WorkerCONNECT test.remote.haxx.se.%TESTNUMBER:8990 HTTP/1.1 90*6236dae4SAndroid Build Coastguard WorkerHost: test.remote.haxx.se.%TESTNUMBER:8990 91*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 92*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive 93*6236dae4SAndroid Build Coastguard Worker 94*6236dae4SAndroid Build Coastguard WorkerCONNECT test.remote.haxx.se.%TESTNUMBER:8990 HTTP/1.1 95*6236dae4SAndroid Build Coastguard WorkerHost: test.remote.haxx.se.%TESTNUMBER:8990 96*6236dae4SAndroid Build Coastguard WorkerProxy-Authorization: Digest username="silly", realm="weirdorealm", nonce="12345", uri="test.remote.haxx.se.%TESTNUMBER:8990", response="003e36decb4dbf6366b3ecb9b87c24ec" 97*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 98*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive 99*6236dae4SAndroid Build Coastguard Worker 100*6236dae4SAndroid Build Coastguard WorkerGET /path/%TESTNUMBER0002 HTTP/1.1 101*6236dae4SAndroid Build Coastguard WorkerHost: test.remote.haxx.se.%TESTNUMBER:8990 102*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 103*6236dae4SAndroid Build Coastguard WorkerAccept: */* 104*6236dae4SAndroid Build Coastguard Worker 105*6236dae4SAndroid Build Coastguard Worker[DISCONNECT] 106*6236dae4SAndroid Build Coastguard Worker</protocol> 107*6236dae4SAndroid Build Coastguard Worker</verify> 108*6236dae4SAndroid Build Coastguard Worker</testcase> 109