1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6HTTP NTLM auth 7connection re-use 8</keywords> 9</info> 10# Server-side 11<reply> 12<servercmd> 13connection-monitor 14</servercmd> 15 16<data> 17HTTP/1.1 401 Authentication please! 18Content-Length: 20 19WWW-Authenticate: Digest realm="loonie", nonce="314156592" 20WWW-Authenticate: Basic 21 22Please auth with me 23</data> 24 25<data3> 26HTTP/1.1 401 Authentication please! 27Content-Length: 20 28WWW-Authenticate: Digest realm="loonie", nonce="314156592" 29WWW-Authenticate: Basic 30 31Please auth with me 32</data3> 33 34# This is supposed to be returned when the server gets the second 35# Authorization: NTLM line passed-in from the client 36<data1000> 37HTTP/1.1 200 Things are fine in server land 38Server: Microsoft-IIS/5.0 39Content-Length: 4 40 41moo 42</data1000> 43 44<data1003> 45HTTP/1.1 200 OK 46Server: Another one/1.0 47Content-Length: 4 48 49boo 50</data1003> 51 52# This is the first reply after the redirection 53<data1011> 54HTTP/1.1 200 OK 55Server: Microsoft-IIS/5.0 56Content-Type: text/html; charset=iso-8859-1 57Content-Length: 34 58 59This is not the real page either! 60</data1011> 61 62<datacheck> 63HTTP/1.1 401 Authentication please! 64Content-Length: 20 65WWW-Authenticate: Digest realm="loonie", nonce="314156592" 66WWW-Authenticate: Basic 67 68HTTP/1.1 200 Things are fine in server land 69Server: Microsoft-IIS/5.0 70Content-Length: 4 71 72moo 73</datacheck> 74 75</reply> 76 77# Client-side 78<client> 79<server> 80http 81</server> 82<features> 83!SSPI 84crypto 85</features> 86 <name> 87HTTP with --anyauth and connection re-use 88 </name> 89 <command> 90http://%HOSTIP:%HTTPPORT/1418 -u testuser:testpass --anyauth http://%HOSTIP:%HTTPPORT/14180003 91</command> 92</client> 93 94# Verify data after the test has been "shot" 95<verify> 96<protocol> 97GET /1418 HTTP/1.1 98Host: %HOSTIP:%HTTPPORT 99User-Agent: curl/%VERSION 100Accept: */* 101 102GET /1418 HTTP/1.1 103Host: %HOSTIP:%HTTPPORT 104Authorization: Digest username="testuser", realm="loonie", nonce="314156592", uri="/1418", response="986238b7e0077754944c966f56d9bc77" 105User-Agent: curl/%VERSION 106Accept: */* 107 108GET /14180003 HTTP/1.1 109Host: %HOSTIP:%HTTPPORT 110User-Agent: curl/%VERSION 111Accept: */* 112 113GET /14180003 HTTP/1.1 114Host: %HOSTIP:%HTTPPORT 115Authorization: Digest username="testuser", realm="loonie", nonce="314156592", uri="/14180003", response="1c6390a67bac3283a9b023402f3b3540" 116User-Agent: curl/%VERSION 117Accept: */* 118 119[DISCONNECT] 120</protocol> 121</verify> 122</testcase> 123