<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
Digest
</keywords>
</info>

# Server-side
<reply>
<data nocheck="yes">
HTTP/1.1 401 OK
Date: Tue, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Type: text/html
Content-Length: 0
WWW-Authenticate: Digest realm="host-a-realm", nonce="host-a-nonce-0123456789", algorithm=MD5, qop="auth"

</data>
<data1 crlf="headers">
HTTP/1.1 401 OK
Date: Tue, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Type: text/html
Content-Length: 0
WWW-Authenticate: Digest realm="host-b-realm", nonce="2"

</data1>
</reply>

# Client-side
<client>
<server>
http
</server>
<name>
Digest response when not asked, then use Digest
</name>
<features>
!SSPI
crypto
digest
</features>
<tool>
lib%TESTNUMBER
</tool>

<command>
http://firsthost:%HTTPPORT/%TESTNUMBER http://secondhost:%HTTPPORT/%TESTNUMBER0001 %HTTPPORT %HOSTIP
</command>
</client>

# Verify data after the test has been "shot"
<verify>
<protocol crlf="headers">
GET /%TESTNUMBER HTTP/1.1
Host: firsthost:%HTTPPORT
Accept: */*

GET /%TESTNUMBER0001 HTTP/1.1
Host: secondhost:%HTTPPORT
Accept: */*

GET /19850001 HTTP/1.1
Host: secondhost:%HTTPPORT
Authorization: Digest username="alice", realm="host-b-realm", nonce="2", uri="/19850001", response="b3186bc857ad5bb63947c39476d37290"
Accept: */*

GET /19850001 HTTP/1.1
Host: secondhost:%HTTPPORT
Authorization: Digest username="alice", realm="host-b-realm", nonce="2", uri="/19850001", response="b3186bc857ad5bb63947c39476d37290"
Accept: */*

</protocol>
<errorcode>
52
</errorcode>
</verify>
</testcase>
