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 200 beng swsclose swsbounce
14Server: Microsoft-IIS/6.0
15Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth
16Content-Type: text/html; charset=iso-8859-1
17
18This is not the real page
19</data>
20
21<data1>
22HTTP/1.1 200 moo swsclose
23Server: Microsoft-IIS/6.0
24Content-Type: text/html; charset=iso-8859-1
25Content-Length: 16
26
27content for you
28</data1>
29
30<datacheck>
31HTTP/1.1 200 beng swsclose swsbounce
32Server: Microsoft-IIS/6.0
33Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth
34Content-Type: text/html; charset=iso-8859-1
35
36HTTP/1.1 200 moo swsclose
37Server: Microsoft-IIS/6.0
38Content-Type: text/html; charset=iso-8859-1
39Content-Length: 16
40
41content for you
42</datacheck>
43
44</reply>
45
46# Client-side
47<client>
48# 
49<server>
50http
51</server>
52<features>
53crypto
54</features>
55 <name>
56HTTP POST --digest to server not requiring any auth at all
57 </name>
58 <command>
59http://%HOSTIP:%HTTPPORT/175 -u auser:apasswd --digest -d "junkelijunk"
60</command>
61</client>
62
63# Verify data after the test has been "shot"
64<verify>
65<strip>
66^User-Agent:.*
67</strip>
68<protocol nonewline="yes">
69POST /175 HTTP/1.1
70User-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
71Host: %HOSTIP:%HTTPPORT
72Accept: */*
73Content-Length: 0
74Content-Type: application/x-www-form-urlencoded
75
76POST /175 HTTP/1.1
77User-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
78Host: %HOSTIP:%HTTPPORT
79Accept: */*
80Content-Length: 11
81Content-Type: application/x-www-form-urlencoded
82
83junkelijunk
84</protocol>
85</verify>
86</testcase>
87