test565 (1994B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP POST 6 HTTP Digest auth 7 chunked Transfer-Encoding 8 </keywords> 9 </info> 10 # 11 # Server-side 12 <reply> 13 <data> 14 HTTP/1.1 100 Continue 15 Server: Microsoft-IIS/5.0 16 Date: Sun, 03 Apr 2005 14:57:45 GMT 17 X-Powered-By: ASP.NET 18 19 HTTP/1.1 401 authentication please swsbounce 20 Server: Microsoft-IIS/6.0 21 WWW-Authenticate: Digest realm="testrealm", nonce="1053604144" 22 Content-Type: text/html; charset=iso-8859-1 23 Content-Length: 0 24 25 </data> 26 <data1> 27 HTTP/1.1 200 A OK 28 Server: Microsoft-IIS/6.0 29 Content-Type: text/html; charset=iso-8859-1 30 Content-Length: 3 31 32 ok 33 </data1> 34 <datacheck> 35 HTTP/1.1 100 Continue 36 Server: Microsoft-IIS/5.0 37 Date: Sun, 03 Apr 2005 14:57:45 GMT 38 X-Powered-By: ASP.NET 39 40 HTTP/1.1 401 authentication please swsbounce 41 Server: Microsoft-IIS/6.0 42 WWW-Authenticate: Digest realm="testrealm", nonce="1053604144" 43 Content-Type: text/html; charset=iso-8859-1 44 Content-Length: 0 45 46 HTTP/1.1 200 A OK 47 Server: Microsoft-IIS/6.0 48 Content-Type: text/html; charset=iso-8859-1 49 Content-Length: 3 50 51 ok 52 </datacheck> 53 </reply> 54 55 # Client-side 56 <client> 57 <server> 58 http 59 </server> 60 <features> 61 !SSPI 62 crypto 63 digest 64 </features> 65 # tool is what to use instead of 'curl' 66 <tool> 67 lib510 68 </tool> 69 70 <name> 71 send HTTP POST using read callback, chunked transfer-encoding and Digest 72 </name> 73 <command> 74 http://%HOSTIP:%HTTPPORT/%TESTNUMBER 75 </command> 76 </client> 77 78 # 79 # Verify data after the test has been "shot" 80 <verify> 81 <protocol> 82 POST /%TESTNUMBER HTTP/1.1 83 Host: %HOSTIP:%HTTPPORT 84 Accept: */* 85 Transfer-Encoding: chunked 86 Content-Type: application/x-www-form-urlencoded 87 88 0 89 90 POST /%TESTNUMBER HTTP/1.1 91 Host: %HOSTIP:%HTTPPORT 92 Authorization: Digest username="foo", realm="testrealm", nonce="1053604144", uri="/%TESTNUMBER", response="877424f750af047634dbd94f9933217b" 93 Accept: */* 94 Transfer-Encoding: chunked 95 Content-Type: application/x-www-form-urlencoded 96 Expect: 100-continue 97 98 3 99 one 100 3 101 two 102 5 103 three 104 1d 105 and a final longer crap: four 106 0 107 108 </protocol> 109 </verify> 110 </testcase>