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