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 401 authentication please swsbounce 14Server: Microsoft-IIS/6.0 15WWW-Authenticate: Digest realm="testrealm", nonce="1053604144" 16Content-Type: text/html; charset=iso-8859-1 17Content-Length: 0 18 19</data> 20<data1000> 21HTTP/1.1 200 A OK 22Server: Microsoft-IIS/6.0 23Content-Type: text/html; charset=iso-8859-1 24Content-Length: 3 25 26ok 27</data1000> 28 29<datacheck> 30HTTP/1.1 401 authentication please swsbounce 31Server: Microsoft-IIS/6.0 32WWW-Authenticate: Digest realm="testrealm", nonce="1053604144" 33Content-Type: text/html; charset=iso-8859-1 34Content-Length: 0 35 36HTTP/1.1 200 A OK 37Server: Microsoft-IIS/6.0 38Content-Type: text/html; charset=iso-8859-1 39Content-Length: 3 40 41ok 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 57 </name> 58 <command> 59http://%HOSTIP:%HTTPPORT/245 -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 /245 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 /245 HTTP/1.1 77Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/245", response="379a439b1737ba257c1d2f103914b18b" 78User-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 79Host: %HOSTIP:%HTTPPORT 80Accept: */* 81Content-Length: 11 82Content-Type: application/x-www-form-urlencoded 83 84junkelijunk 85</protocol> 86</verify> 87</testcase> 88