1<testcase> 2# based on test 64 3 4<info> 5<keywords> 6HTTP 7HTTP GET 8HTTP Digest auth 9</keywords> 10</info> 11 12<reply> 13<data> 14HTTP/1.1 401 Authorization Required swsclose 15Server: Apache/1.3.27 (Darwin) PHP/4.1.2 16WWW-Authenticate: Digest realm="testrealm", nonce="1053604145" 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 swsclose 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 swsclose 36Server: Apache/1.3.27 (Darwin) PHP/4.1.2 37WWW-Authenticate: Digest realm="testrealm", nonce="1053604145" 38Content-Type: text/html; charset=iso-8859-1 39Content-Length: 26 40 41HTTP/1.1 200 OK swsclose 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 authorization on custom CURLOPT_PORT 62</name> 63<tool> 64lib%TESTNUMBER 65</tool> 66<command> 67http://%HOSTIP/%TESTNUMBER %HTTPPORT 68</command> 69</client> 70 71# Verify data after the test has been "shot" 72<verify> 73<protocol> 74GET /%TESTNUMBER HTTP/1.1 75Host: %HOSTIP:%HTTPPORT 76User-Agent: lib%TESTNUMBER 77Accept: */* 78 79GET /%TESTNUMBER HTTP/1.1 80Host: %HOSTIP:%HTTPPORT 81Authorization: Digest username="testuser", realm="testrealm", nonce="1053604145", uri="/%TESTNUMBER", response="9cbbd857a37e45f2bcad5c7d088191df" 82User-Agent: lib%TESTNUMBER 83Accept: */* 84 85</protocol> 86</verify> 87</testcase> 88