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