test1079 (1524B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 HTTP Digest auth 7 </keywords> 8 </info> 9 10 # Server-side 11 <reply> 12 <data> 13 HTTP/1.1 401 Authorization Required swsclose 14 Server: Apache/1.3.27 (Darwin) PHP/4.1.2 15 WWW-Authenticate: Digest realm="testrealm", nonce="1053604145" 16 Content-Type: text/plain; charset=iso-8859-1 17 Content-Length: 26 18 19 This 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 # Send nothing to force an error code 52 reply 25 <data1000> 26 </data1000> 27 28 <datacheck> 29 HTTP/1.1 401 Authorization Required swsclose 30 Server: Apache/1.3.27 (Darwin) PHP/4.1.2 31 WWW-Authenticate: Digest realm="testrealm", nonce="1053604145" 32 Content-Type: text/plain; charset=iso-8859-1 33 Content-Length: 26 34 35 </datacheck> 36 37 </reply> 38 39 # Client-side 40 <client> 41 <server> 42 http 43 </server> 44 <features> 45 !SSPI 46 crypto 47 digest 48 </features> 49 <name> 50 HTTP retry after closed connection and empty response 51 </name> 52 <command> 53 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:testpass --digest 54 </command> 55 </client> 56 57 # Verify data after the test has been "shot" 58 <verify> 59 <errorcode> 60 52 61 </errorcode> 62 <protocol> 63 GET /%TESTNUMBER HTTP/1.1 64 Host: %HOSTIP:%HTTPPORT 65 User-Agent: curl/%VERSION 66 Accept: */* 67 68 GET /%TESTNUMBER HTTP/1.1 69 Host: %HOSTIP:%HTTPPORT 70 Authorization: Digest username="testuser", realm="testrealm", nonce="1053604145", uri="/%TESTNUMBER", response="e340c7cdca0950462070f46ee139e9f7" 71 User-Agent: curl/%VERSION 72 Accept: */* 73 74 </protocol> 75 </verify> 76 </testcase>