| 1 |
# Server-side |
| 2 |
<reply> |
| 3 |
<data> |
| 4 |
HTTP/1.1 100 Continue |
| 5 |
Server: Microsoft-IIS/5.0 |
| 6 |
Date: Sun, 03 Apr 2005 14:57:45 GMT |
| 7 |
X-Powered-By: ASP.NET |
| 8 |
|
| 9 |
HTTP/1.1 401 authentication please swsbounce |
| 10 |
Server: Microsoft-IIS/6.0 |
| 11 |
WWW-Authenticate: Digest realm="testrealm", nonce="1053604144" |
| 12 |
Content-Type: text/html; charset=iso-8859-1 |
| 13 |
Content-Length: 0 |
| 14 |
|
| 15 |
</data> |
| 16 |
<data1000> |
| 17 |
HTTP/1.1 200 A OK |
| 18 |
Server: Microsoft-IIS/6.0 |
| 19 |
Content-Type: text/html; charset=iso-8859-1 |
| 20 |
Content-Length: 3 |
| 21 |
|
| 22 |
ok |
| 23 |
</data1000> |
| 24 |
|
| 25 |
<datacheck> |
| 26 |
HTTP/1.1 100 Continue |
| 27 |
Server: Microsoft-IIS/5.0 |
| 28 |
Date: Sun, 03 Apr 2005 14:57:45 GMT |
| 29 |
X-Powered-By: ASP.NET |
| 30 |
|
| 31 |
HTTP/1.1 401 authentication please swsbounce |
| 32 |
Server: Microsoft-IIS/6.0 |
| 33 |
WWW-Authenticate: Digest realm="testrealm", nonce="1053604144" |
| 34 |
Content-Type: text/html; charset=iso-8859-1 |
| 35 |
Content-Length: 0 |
| 36 |
|
| 37 |
HTTP/1.1 200 A OK |
| 38 |
Server: Microsoft-IIS/6.0 |
| 39 |
Content-Type: text/html; charset=iso-8859-1 |
| 40 |
Content-Length: 3 |
| 41 |
|
| 42 |
ok |
| 43 |
</datacheck> |
| 44 |
|
| 45 |
</reply> |
| 46 |
|
| 47 |
# Client-side |
| 48 |
<client> |
| 49 |
# |
| 50 |
<server> |
| 51 |
http |
| 52 |
</server> |
| 53 |
<name> |
| 54 |
HTTP POST --digest with server doing a 100 before 401 response |
| 55 |
</name> |
| 56 |
<command> |
| 57 |
http://%HOSTIP:%HTTPPORT/246 -u auser:apasswd --digest -d "junkelijunk" |
| 58 |
</command> |
| 59 |
</client> |
| 60 |
|
| 61 |
# Verify data after the test has been "shot" |
| 62 |
<verify> |
| 63 |
<strip> |
| 64 |
^User-Agent:.* |
| 65 |
</strip> |
| 66 |
<protocol nonewline=yes> |
| 67 |
POST /246 HTTP/1.1 |
| 68 |
User-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 |
| 69 |
Host: 127.0.0.1:%HTTPPORT |
| 70 |
Accept: */* |
| 71 |
Content-Length: 0 |
| 72 |
Content-Type: application/x-www-form-urlencoded |
| 73 |
|
| 74 |
POST /246 HTTP/1.1 |
| 75 |
Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/246", response="761e6fc9a760c39d587092e8d840e740" |
| 76 |
User-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 |
| 77 |
Host: 127.0.0.1:8990 |
| 78 |
Accept: */* |
| 79 |
Content-Length: 11 |
| 80 |
Content-Type: application/x-www-form-urlencoded |
| 81 |
|
| 82 |
junkelijunk |
| 83 |
</protocol> |
| 84 |
</verify> |