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 POST 6*6236dae4SAndroid Build Coastguard WorkerHTTP Digest auth 7*6236dae4SAndroid Build Coastguard Worker</keywords> 8*6236dae4SAndroid Build Coastguard Worker</info> 9*6236dae4SAndroid Build Coastguard Worker 10*6236dae4SAndroid Build Coastguard Worker# Server-side 11*6236dae4SAndroid Build Coastguard Worker<reply> 12*6236dae4SAndroid Build Coastguard Worker<data> 13*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 100 Continue 14*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/5.0 15*6236dae4SAndroid Build Coastguard WorkerDate: Sun, 03 Apr 2005 14:57:45 GMT 16*6236dae4SAndroid Build Coastguard WorkerX-Powered-By: ASP.NET 17*6236dae4SAndroid Build Coastguard Worker 18*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 authentication please swsbounce 19*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/6.0 20*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Digest realm="testrealm", nonce="1053604144" 21*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 22*6236dae4SAndroid Build Coastguard WorkerContent-Length: 0 23*6236dae4SAndroid Build Coastguard Worker 24*6236dae4SAndroid Build Coastguard Worker</data> 25*6236dae4SAndroid Build Coastguard Worker<data1000> 26*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 A OK 27*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/6.0 28*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 29*6236dae4SAndroid Build Coastguard WorkerContent-Length: 3 30*6236dae4SAndroid Build Coastguard Worker 31*6236dae4SAndroid Build Coastguard Workerok 32*6236dae4SAndroid Build Coastguard Worker</data1000> 33*6236dae4SAndroid Build Coastguard Worker 34*6236dae4SAndroid Build Coastguard Worker<datacheck> 35*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 100 Continue 36*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/5.0 37*6236dae4SAndroid Build Coastguard WorkerDate: Sun, 03 Apr 2005 14:57:45 GMT 38*6236dae4SAndroid Build Coastguard WorkerX-Powered-By: ASP.NET 39*6236dae4SAndroid Build Coastguard Worker 40*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 authentication please swsbounce 41*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/6.0 42*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Digest realm="testrealm", nonce="1053604144" 43*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 44*6236dae4SAndroid Build Coastguard WorkerContent-Length: 0 45*6236dae4SAndroid Build Coastguard Worker 46*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 A OK 47*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/6.0 48*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 49*6236dae4SAndroid Build Coastguard WorkerContent-Length: 3 50*6236dae4SAndroid Build Coastguard Worker 51*6236dae4SAndroid Build Coastguard Workerok 52*6236dae4SAndroid Build Coastguard Worker</datacheck> 53*6236dae4SAndroid Build Coastguard Worker 54*6236dae4SAndroid Build Coastguard Worker</reply> 55*6236dae4SAndroid Build Coastguard Worker 56*6236dae4SAndroid Build Coastguard Worker# Client-side 57*6236dae4SAndroid Build Coastguard Worker<client> 58*6236dae4SAndroid Build Coastguard Worker# 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 POST --digest with server doing a 100 before 401 response 68*6236dae4SAndroid Build Coastguard Worker</name> 69*6236dae4SAndroid Build Coastguard Worker<command> 70*6236dae4SAndroid Build Coastguard Workerhttp://%HOSTIP:%HTTPPORT/%TESTNUMBER -u auser:apasswd --digest -d "junkelijunk" 71*6236dae4SAndroid Build Coastguard Worker</command> 72*6236dae4SAndroid Build Coastguard Worker</client> 73*6236dae4SAndroid Build Coastguard Worker 74*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot" 75*6236dae4SAndroid Build Coastguard Worker<verify> 76*6236dae4SAndroid Build Coastguard Worker<protocol nonewline="yes"> 77*6236dae4SAndroid Build Coastguard WorkerPOST /%TESTNUMBER HTTP/1.1 78*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 79*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 80*6236dae4SAndroid Build Coastguard WorkerAccept: */* 81*6236dae4SAndroid Build Coastguard WorkerContent-Length: 0 82*6236dae4SAndroid Build Coastguard WorkerContent-Type: application/x-www-form-urlencoded 83*6236dae4SAndroid Build Coastguard Worker 84*6236dae4SAndroid Build Coastguard WorkerPOST /%TESTNUMBER HTTP/1.1 85*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 86*6236dae4SAndroid Build Coastguard WorkerAuthorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/%TESTNUMBER", response="761e6fc9a760c39d587092e8d840e740" 87*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 88*6236dae4SAndroid Build Coastguard WorkerAccept: */* 89*6236dae4SAndroid Build Coastguard WorkerContent-Length: 11 90*6236dae4SAndroid Build Coastguard WorkerContent-Type: application/x-www-form-urlencoded 91*6236dae4SAndroid Build Coastguard Worker 92*6236dae4SAndroid Build Coastguard Workerjunkelijunk 93*6236dae4SAndroid Build Coastguard Worker</protocol> 94*6236dae4SAndroid Build Coastguard Worker</verify> 95*6236dae4SAndroid Build Coastguard Worker</testcase> 96