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
68</features>
69 <name>
70HTTP POST --digest with PUT and resumed upload and modified method, twice
71 </name>
72 <command>
73http://%HOSTIP:%HTTPPORT/1002.upload1 -T log/1002 http://%HOSTIP:%HTTPPORT/1002.upload2 -T log/1002 -u auser:apasswd --digest -x  http://%HOSTIP:%HTTPPORT -C 2 -X GET
74</command>
75<file name="log/1002">
76test
77</file>
78</client>
79
80# Verify data after the test has been "shot"
81<verify>
82<strip>
83^User-Agent:.*
84</strip>
85<protocol>
86GET http://%HOSTIP:%HTTPPORT/1002.upload1 HTTP/1.1
87Host: %HOSTIP:%HTTPPORT
88Content-Range: bytes 2-4/5
89User-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
90Accept: */*
91Proxy-Connection: Keep-Alive
92Content-Length: 0
93
94GET http://%HOSTIP:%HTTPPORT/1002.upload1 HTTP/1.1
95Host: %HOSTIP:%HTTPPORT
96Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/1002.upload1", response="198aa9b6acb4b0c71d02a197a5e41f54"
97Content-Range: bytes 2-4/5
98Accept: */*
99Proxy-Connection: Keep-Alive
100Content-Length: 3
101Expect: 100-continue
102
103st
104GET http://%HOSTIP:%HTTPPORT/1002.upload2 HTTP/1.1
105Host: %HOSTIP:%HTTPPORT
106Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/1002.upload2", response="d711f0d2042786d930de635ba0d1a1d0"
107Content-Range: bytes 2-4/5
108User-Agent: curl/7.16.1
109Accept: */*
110Proxy-Connection: Keep-Alive
111Content-Length: 3
112Expect: 100-continue
113
114st
115</protocol>
116</verify>
117</testcase>
118