1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP PUT 6HTTP proxy 7HTTP Digest auth 8Resume 9Content-Range 10CUSTOMREQUEST 11</keywords> 12</info> 13 14<reply> 15<data> 16HTTP/1.1 100 Continue 17Server: Microsoft-IIS/5.0 18Date: Sun, 03 Apr 2005 14:57:45 GMT 19X-Powered-By: ASP.NET 20 21HTTP/1.1 401 authentication please swsbounce 22Server: Microsoft-IIS/6.0 23WWW-Authenticate: Digest realm="testrealm", nonce="1053604144" 24Content-Type: text/html; charset=iso-8859-1 25Content-Length: 0 26 27</data> 28<data1000> 29HTTP/1.1 200 A OK 30Server: Microsoft-IIS/6.0 31Content-Type: text/html; charset=iso-8859-1 32Content-Length: 3 33 34ok 35</data1000> 36 37<datacheck> 38HTTP/1.1 100 Continue 39Server: Microsoft-IIS/5.0 40Date: Sun, 03 Apr 2005 14:57:45 GMT 41X-Powered-By: ASP.NET 42 43HTTP/1.1 401 authentication please swsbounce 44Server: Microsoft-IIS/6.0 45WWW-Authenticate: Digest realm="testrealm", nonce="1053604144" 46Content-Type: text/html; charset=iso-8859-1 47Content-Length: 0 48 49HTTP/1.1 200 A OK 50Server: Microsoft-IIS/6.0 51Content-Type: text/html; charset=iso-8859-1 52Content-Length: 3 53 54ok 55</datacheck> 56 57</reply> 58 59# Client-side 60<client> 61# 62<server> 63http 64</server> 65<features> 66!SSPI 67crypto 68proxy 69</features> 70<name> 71HTTP PUT with Digest auth, resumed upload and modified method, twice 72</name> 73<command> 74http://%HOSTIP:%HTTPPORT/%TESTNUMBER.upload1 -T %LOGDIR/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER.upload2 -T %LOGDIR/%TESTNUMBER -u auser:apasswd --digest -x http://%HOSTIP:%HTTPPORT -C 2 -X GET 75</command> 76<file name="%LOGDIR/%TESTNUMBER"> 77test 78</file> 79</client> 80 81# Verify data after the test has been "shot" 82<verify> 83<protocol> 84GET http://%HOSTIP:%HTTPPORT/%TESTNUMBER.upload1 HTTP/1.1 85Host: %HOSTIP:%HTTPPORT 86Content-Range: bytes 2-4/5 87User-Agent: curl/%VERSION 88Accept: */* 89Proxy-Connection: Keep-Alive 90Content-Length: 0 91 92GET http://%HOSTIP:%HTTPPORT/%TESTNUMBER.upload1 HTTP/1.1 93Host: %HOSTIP:%HTTPPORT 94Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/%TESTNUMBER.upload1", response="198aa9b6acb4b0c71d02a197a5e41f54" 95Content-Range: bytes 2-4/5 96User-Agent: curl/%VERSION 97Accept: */* 98Proxy-Connection: Keep-Alive 99Content-Length: 3 100 101st 102GET http://%HOSTIP:%HTTPPORT/%TESTNUMBER.upload2 HTTP/1.1 103Host: %HOSTIP:%HTTPPORT 104Content-Range: bytes 2-4/5 105User-Agent: curl/%VERSION 106Accept: */* 107Proxy-Connection: Keep-Alive 108Content-Length: 0 109 110GET http://%HOSTIP:%HTTPPORT/%TESTNUMBER.upload2 HTTP/1.1 111Host: %HOSTIP:%HTTPPORT 112Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/%TESTNUMBER.upload2", response="d711f0d2042786d930de635ba0d1a1d0" 113Content-Range: bytes 2-4/5 114User-Agent: curl/%VERSION 115Accept: */* 116Proxy-Connection: Keep-Alive 117Content-Length: 3 118 119st 120</protocol> 121</verify> 122</testcase> 123