1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP POST
6HTTP Digest auth
7</keywords>
8</info>
9#
10# Server-side
11<reply>
12<data>
13HTTP/1.1 100 Continue
14Server: Microsoft-IIS/5.0
15Date: Sun, 03 Apr 2005 14:57:45 GMT
16X-Powered-By: ASP.NET
17
18HTTP/1.1 401 authentication please swsbounce
19Server: Microsoft-IIS/6.0
20WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
21Content-Type: text/html; charset=iso-8859-1
22Content-Length: 0
23
24</data>
25<data1>
26HTTP/1.1 200 A OK
27Server: Microsoft-IIS/6.0
28Content-Type: text/html; charset=iso-8859-1
29Content-Length: 3
30
31ok
32</data1>
33<datacheck>
34HTTP/1.1 100 Continue
35Server: Microsoft-IIS/5.0
36Date: Sun, 03 Apr 2005 14:57:45 GMT
37X-Powered-By: ASP.NET
38
39HTTP/1.1 401 authentication please swsbounce
40Server: Microsoft-IIS/6.0
41WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
42Content-Type: text/html; charset=iso-8859-1
43Content-Length: 0
44
45HTTP/1.1 200 A OK
46Server: Microsoft-IIS/6.0
47Content-Type: text/html; charset=iso-8859-1
48Content-Length: 3
49
50ok
51</datacheck>
52</reply>
53
54# Client-side
55<client>
56<server>
57http
58</server>
59# tool is what to use instead of 'curl'
60<tool>
61lib579
62</tool>
63
64 <name>
65small chunked HTTP POSTs with digest auth. and progress callback
66 </name>
67 <command>
68http://%HOSTIP:%HTTPPORT/579 log/ip579
69</command>
70</client>
71
72#
73# Verify data after the test has been "shot"
74<verify>
75<file name="log/ip579" mode="text">
76Progress callback called with UL 0 out of 0
77Progress callback called with UL 0 out of -1
78Progress callback called with UL 8 out of -1
79Progress callback called with UL 16 out of -1
80Progress callback called with UL 26 out of -1
81Progress callback called with UL 61 out of -1
82Progress callback called with UL 66 out of -1
83</file>
84</verify>
85</testcase>
86