1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6HTTP Digest auth 7</keywords> 8</info> 9# Server-side 10<reply> 11<data> 12HTTP/1.1 401 Authorization Required 13Server: Apache/1.3.27 (Darwin) PHP/4.1.2 14WWW-Authenticate: Basic realm="foothis" 15WWW-Authenticate: Digest realm="testrealm", nonce="1053604199" 16Content-Type: text/html; charset=iso-8859-1 17Content-Length: 26 18 19This is not the real page 20</data> 21 22# This is supposed to be returned when the server gets a 23# Authorization: Digest line passed-in from the client 24<data1000> 25HTTP/1.1 200 OK 26Server: Apache/1.3.27 (Darwin) PHP/4.1.2 27Content-Type: text/html; charset=iso-8859-1 28Content-Length: 23 29 30This IS the real page! 31</data1000> 32 33<datacheck> 34HTTP/1.1 401 Authorization Required 35Server: Apache/1.3.27 (Darwin) PHP/4.1.2 36WWW-Authenticate: Basic realm="foothis" 37WWW-Authenticate: Digest realm="testrealm", nonce="1053604199" 38Content-Type: text/html; charset=iso-8859-1 39Content-Length: 26 40 41HTTP/1.1 200 OK 42Server: Apache/1.3.27 (Darwin) PHP/4.1.2 43Content-Type: text/html; charset=iso-8859-1 44Content-Length: 23 45 46This IS the real page! 47</datacheck> 48 49</reply> 50 51# Client-side 52<client> 53<server> 54http 55</server> 56<features> 57!SSPI 58crypto 59</features> 60<name> 61HTTP with Digest *OR* Basic authorization 62</name> 63<command> 64http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:testpass --anyauth 65</command> 66</client> 67 68# Verify data after the test has been "shot" 69<verify> 70<protocol> 71GET /%TESTNUMBER HTTP/1.1 72Host: %HOSTIP:%HTTPPORT 73User-Agent: curl/%VERSION 74Accept: */* 75 76GET /%TESTNUMBER HTTP/1.1 77Host: %HOSTIP:%HTTPPORT 78Authorization: Digest username="testuser", realm="testrealm", nonce="1053604199", uri="/%TESTNUMBER", response="9fcd1330377365a09bbcb33b2cbb25bd" 79User-Agent: curl/%VERSION 80Accept: */* 81 82</protocol> 83</verify> 84</testcase> 85