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 PUT 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<data> 14*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 Authorization Required 15*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Darwin) PHP/4.1.2 16*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts" 17*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Basic realm="gimme all yer s3cr3ts" 18*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344" 19*6236dae4SAndroid Build Coastguard WorkerContent-Length: 26 20*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 21*6236dae4SAndroid Build Coastguard Worker 22*6236dae4SAndroid Build Coastguard WorkerThis is not the real page 23*6236dae4SAndroid Build Coastguard Worker</data> 24*6236dae4SAndroid Build Coastguard Worker 25*6236dae4SAndroid Build Coastguard Worker# This is supposed to be returned when the server gets a 26*6236dae4SAndroid Build Coastguard Worker# Authorization: Digest line passed-in from the client 27*6236dae4SAndroid Build Coastguard Worker<data1000> 28*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK 29*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Darwin) PHP/4.1.2 30*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 31*6236dae4SAndroid Build Coastguard WorkerContent-Length: 23 32*6236dae4SAndroid Build Coastguard WorkerConnection: close 33*6236dae4SAndroid Build Coastguard Worker 34*6236dae4SAndroid Build Coastguard WorkerThis IS the real page! 35*6236dae4SAndroid Build Coastguard Worker</data1000> 36*6236dae4SAndroid Build Coastguard Worker 37*6236dae4SAndroid Build Coastguard Worker<datacheck> 38*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 Authorization Required 39*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Darwin) PHP/4.1.2 40*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts" 41*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Basic realm="gimme all yer s3cr3ts" 42*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344" 43*6236dae4SAndroid Build Coastguard WorkerContent-Length: 26 44*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 45*6236dae4SAndroid Build Coastguard Worker 46*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK 47*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Darwin) PHP/4.1.2 48*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 49*6236dae4SAndroid Build Coastguard WorkerContent-Length: 23 50*6236dae4SAndroid Build Coastguard WorkerConnection: close 51*6236dae4SAndroid Build Coastguard Worker 52*6236dae4SAndroid Build Coastguard WorkerThis IS the real page! 53*6236dae4SAndroid Build Coastguard Worker</datacheck> 54*6236dae4SAndroid Build Coastguard Worker 55*6236dae4SAndroid Build Coastguard Worker</reply> 56*6236dae4SAndroid Build Coastguard Worker 57*6236dae4SAndroid Build Coastguard Worker# Client-side 58*6236dae4SAndroid Build Coastguard Worker<client> 59*6236dae4SAndroid Build Coastguard Worker<server> 60*6236dae4SAndroid Build Coastguard Workerhttp 61*6236dae4SAndroid Build Coastguard Worker</server> 62*6236dae4SAndroid Build Coastguard Worker<features> 63*6236dae4SAndroid Build Coastguard Worker!SSPI 64*6236dae4SAndroid Build Coastguard Workercrypto 65*6236dae4SAndroid Build Coastguard Worker</features> 66*6236dae4SAndroid Build Coastguard Worker<name> 67*6236dae4SAndroid Build Coastguard WorkerHTTP PUT with --anyauth authorization (picking Digest) 68*6236dae4SAndroid Build Coastguard Worker</name> 69*6236dae4SAndroid Build Coastguard Worker<command> 70*6236dae4SAndroid Build Coastguard Workerhttp://%HOSTIP:%HTTPPORT/%TESTNUMBER -T %LOGDIR/put%TESTNUMBER -u testuser:testpass --anyauth 71*6236dae4SAndroid Build Coastguard Worker</command> 72*6236dae4SAndroid Build Coastguard Worker<file name="%LOGDIR/put%TESTNUMBER"> 73*6236dae4SAndroid Build Coastguard WorkerThis is data we upload with PUT 74*6236dae4SAndroid Build Coastguard Workera second line 75*6236dae4SAndroid Build Coastguard Workerline three 76*6236dae4SAndroid Build Coastguard Workerfour is the number of lines 77*6236dae4SAndroid Build Coastguard Worker</file> 78*6236dae4SAndroid Build Coastguard Worker</client> 79*6236dae4SAndroid Build Coastguard Worker 80*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot" 81*6236dae4SAndroid Build Coastguard Worker<verify> 82*6236dae4SAndroid Build Coastguard Worker<protocol> 83*6236dae4SAndroid Build Coastguard WorkerPUT /%TESTNUMBER HTTP/1.1 84*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 85*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 86*6236dae4SAndroid Build Coastguard WorkerAccept: */* 87*6236dae4SAndroid Build Coastguard WorkerContent-Length: 85 88*6236dae4SAndroid Build Coastguard Worker 89*6236dae4SAndroid Build Coastguard WorkerThis is data we upload with PUT 90*6236dae4SAndroid Build Coastguard Workera second line 91*6236dae4SAndroid Build Coastguard Workerline three 92*6236dae4SAndroid Build Coastguard Workerfour is the number of lines 93*6236dae4SAndroid Build Coastguard WorkerPUT /%TESTNUMBER HTTP/1.1 94*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 95*6236dae4SAndroid Build Coastguard WorkerAuthorization: Digest username="testuser", realm="gimme all yer s3cr3ts", nonce="11223344", uri="/%TESTNUMBER", response="01cb59db1ddaac246b072d5f5f0716d9" 96*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 97*6236dae4SAndroid Build Coastguard WorkerAccept: */* 98*6236dae4SAndroid Build Coastguard WorkerContent-Length: 85 99*6236dae4SAndroid Build Coastguard Worker 100*6236dae4SAndroid Build Coastguard WorkerThis is data we upload with PUT 101*6236dae4SAndroid Build Coastguard Workera second line 102*6236dae4SAndroid Build Coastguard Workerline three 103*6236dae4SAndroid Build Coastguard Workerfour is the number of lines 104*6236dae4SAndroid Build Coastguard Worker</protocol> 105*6236dae4SAndroid Build Coastguard Worker</verify> 106*6236dae4SAndroid Build Coastguard Worker</testcase> 107