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<features> 60crypto 61</features> 62# tool is what to use instead of 'curl' 63<tool> 64lib565 65</tool> 66 67 <name> 68send HTTP POST using read callback, chunked transfer-encoding and Digest 69 </name> 70 <command> 71http://%HOSTIP:%HTTPPORT/565 72</command> 73</client> 74 75# 76# Verify data after the test has been "shot" 77<verify> 78<protocol> 79POST /565 HTTP/1.1 80Host: %HOSTIP:%HTTPPORT 81Accept: */* 82Transfer-Encoding: chunked 83Content-Type: application/x-www-form-urlencoded 84 850 86 87POST /565 HTTP/1.1 88Authorization: Digest username="foo", realm="testrealm", nonce="1053604144", uri="/565", response="877424f750af047634dbd94f9933217b" 89Host: %HOSTIP:%HTTPPORT 90Accept: */* 91Transfer-Encoding: chunked 92Content-Type: application/x-www-form-urlencoded 93Expect: 100-continue 94 953 96one 973 98two 995 100three 1011d 102and a final longer crap: four 1030 104 105</protocol> 106</verify> 107</testcase> 108