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<data1000>
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</data1000>
33
34<datacheck>
35HTTP/1.1 100 Continue
36Server: Microsoft-IIS/5.0
37Date: Sun, 03 Apr 2005 14:57:45 GMT
38X-Powered-By: ASP.NET
39
40HTTP/1.1 401 authentication please swsbounce
41Server: Microsoft-IIS/6.0
42WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
43Content-Type: text/html; charset=iso-8859-1
44Content-Length: 0
45
46HTTP/1.1 200 A OK
47Server: Microsoft-IIS/6.0
48Content-Type: text/html; charset=iso-8859-1
49Content-Length: 3
50
51ok
52</datacheck>
53
54</reply>
55
56# Client-side
57<client>
58# 
59<server>
60http
61</server>
62<features>
63crypto
64</features>
65 <name>
66HTTP POST --digest with server doing a 100 before 401 response
67 </name>
68 <command>
69http://%HOSTIP:%HTTPPORT/246 -u auser:apasswd --digest -d "junkelijunk"
70</command>
71</client>
72
73# Verify data after the test has been "shot"
74<verify>
75<strip>
76^User-Agent:.*
77</strip>
78<protocol nonewline="yes">
79POST /246 HTTP/1.1
80User-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
81Host: %HOSTIP:%HTTPPORT
82Accept: */*
83Content-Length: 0
84Content-Type: application/x-www-form-urlencoded
85
86POST /246 HTTP/1.1
87Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/246", response="761e6fc9a760c39d587092e8d840e740"
88User-Agent: curl/7.13.2-CVS (i686-pc-linux-gnu) libcurl/7.13.2-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13
89Host: %HOSTIP:%HTTPPORT
90Accept: */*
91Content-Length: 11
92Content-Type: application/x-www-form-urlencoded
93
94junkelijunk
95</protocol>
96</verify>
97</testcase>
98