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" 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" 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 69</features> 70 <name> 71HTTP POST --digest with PUT, resumed upload, modified method and SHA-256 72 </name> 73 <command> 74http://%HOSTIP:%HTTPPORT/2058 -u auser:apasswd --digest -T log/2058 -x http://%HOSTIP:%HTTPPORT -C 2 -X GET 75</command> 76<file name="log/2058"> 77test 78</file> 79</client> 80 81# Verify data after the test has been "shot" 82<verify> 83<strip> 84^User-Agent:.* 85</strip> 86<protocol> 87GET http://%HOSTIP:%HTTPPORT/2058 HTTP/1.1 88Host: %HOSTIP:%HTTPPORT 89Content-Range: bytes 2-4/5 90User-Agent: curl/7.12.1-CVS (i686-pc-linux-gnu) libcurl/7.12.1-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.6 91Accept: */* 92Proxy-Connection: Keep-Alive 93Content-Length: 0 94 95GET http://%HOSTIP:%HTTPPORT/2058 HTTP/1.1 96Host: %HOSTIP:%HTTPPORT 97Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/2058", response="fbed69f9f3fd304c8f1acb1a43eb32688b933c0e28055c16b926cbcec070aeed", algorithm="SHA-256" 98Content-Range: bytes 2-4/5 99Accept: */* 100Proxy-Connection: Keep-Alive 101Content-Length: 3 102Expect: 100-continue 103 104st 105</protocol> 106</verify> 107</testcase> 108