test90 (5434B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 HTTP NTLM auth 7 --anyauth 8 followlocation 9 NTLM 10 </keywords> 11 </info> 12 # Server-side 13 <reply> 14 15 <data> 16 HTTP/1.1 401 Authorization Required swsclose 17 Server: Apache/1.3.27 (Darwin) PHP/4.1.2 18 WWW-Authenticate: Basic 19 WWW-Authenticate: Wild-and-crazy 20 WWW-Authenticate: NTLM 21 Content-Type: text/html; charset=iso-8859-1 22 Content-Length: 26 23 24 This is not the real page 25 </data> 26 27 # This is supposed to be returned when the server gets a first 28 # Authorization: NTLM line passed-in from the client 29 <data1001> 30 HTTP/1.1 401 Now gimme that second request of crap 31 Server: Microsoft-IIS/5.0 32 Content-Type: text/html; charset=iso-8859-1 33 Content-Length: 34 34 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 35 36 This is not the real page either! 37 </data1001> 38 39 # This is supposed to be returned when the server gets the second 40 # Authorization: NTLM line passed-in from the client 41 <data1002> 42 HTTP/1.1 301 Things are fine in server land swsclose 43 Server: Microsoft-IIS/5.0 44 Connection: close 45 Location: /you/%TESTNUMBER0010 46 47 </data1002> 48 49 # This is the first reply after the redirection 50 <data10> 51 HTTP/1.1 401 Authorization Required swsclose 52 Server: Apache/1.3.27 (Darwin) PHP/4.1.2 53 WWW-Authenticate: Basic 54 WWW-Authenticate: Wild-and-crazy 55 WWW-Authenticate: NTLM 56 Content-Type: text/html; charset=iso-8859-1 57 Content-Length: 26 58 59 This is not the real page 60 </data10> 61 62 <data1011> 63 HTTP/1.1 401 Now gimme that second round of crap 64 Server: Microsoft-IIS/5.0 65 Content-Type: text/html; charset=iso-8859-1 66 Content-Length: 34 67 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 68 69 This is not the real page either! 70 </data1011> 71 72 # This is supposed to be returned when the server gets the second 73 # Authorization: NTLM line passed-in from the client 74 <data1012> 75 HTTP/1.1 200 Things are fine in server land swsclose 76 Server: Microsoft-IIS/5.0 77 Content-Type: text/html; charset=iso-8859-1 78 Content-Length: 32 79 80 Finally, this is the real page! 81 </data1012> 82 83 <datacheck> 84 HTTP/1.1 401 Authorization Required swsclose 85 Server: Apache/1.3.27 (Darwin) PHP/4.1.2 86 WWW-Authenticate: Basic 87 WWW-Authenticate: Wild-and-crazy 88 WWW-Authenticate: NTLM 89 Content-Type: text/html; charset=iso-8859-1 90 Content-Length: 26 91 92 HTTP/1.1 401 Now gimme that second request of crap 93 Server: Microsoft-IIS/5.0 94 Content-Type: text/html; charset=iso-8859-1 95 Content-Length: 34 96 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 97 98 HTTP/1.1 301 Things are fine in server land swsclose 99 Server: Microsoft-IIS/5.0 100 Connection: close 101 Location: /you/%TESTNUMBER0010 102 103 HTTP/1.1 401 Authorization Required swsclose 104 Server: Apache/1.3.27 (Darwin) PHP/4.1.2 105 WWW-Authenticate: Basic 106 WWW-Authenticate: Wild-and-crazy 107 WWW-Authenticate: NTLM 108 Content-Type: text/html; charset=iso-8859-1 109 Content-Length: 26 110 111 HTTP/1.1 401 Now gimme that second round of crap 112 Server: Microsoft-IIS/5.0 113 Content-Type: text/html; charset=iso-8859-1 114 Content-Length: 34 115 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 116 117 HTTP/1.1 200 Things are fine in server land swsclose 118 Server: Microsoft-IIS/5.0 119 Content-Type: text/html; charset=iso-8859-1 120 Content-Length: 32 121 122 Finally, this is the real page! 123 </datacheck> 124 125 </reply> 126 127 # Client-side 128 <client> 129 <features> 130 NTLM 131 SSL 132 !SSPI 133 </features> 134 <server> 135 http 136 </server> 137 <name> 138 HTTP with NTLM via --anyauth, and then follow-location with NTLM again 139 </name> 140 <command> 141 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:testpass --anyauth -L 142 </command> 143 </client> 144 145 # Verify data after the test has been "shot" 146 <verify> 147 <protocol> 148 GET /%TESTNUMBER HTTP/1.1 149 Host: %HOSTIP:%HTTPPORT 150 User-Agent: curl/%VERSION 151 Accept: */* 152 153 GET /%TESTNUMBER HTTP/1.1 154 Host: %HOSTIP:%HTTPPORT 155 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 156 User-Agent: curl/%VERSION 157 Accept: */* 158 159 GET /%TESTNUMBER HTTP/1.1 160 Host: %HOSTIP:%HTTPPORT 161 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04= 162 User-Agent: curl/%VERSION 163 Accept: */* 164 165 GET /you/%TESTNUMBER0010 HTTP/1.1 166 Host: %HOSTIP:%HTTPPORT 167 User-Agent: curl/%VERSION 168 Accept: */* 169 170 GET /you/%TESTNUMBER0010 HTTP/1.1 171 Host: %HOSTIP:%HTTPPORT 172 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 173 User-Agent: curl/%VERSION 174 Accept: */* 175 176 GET /you/%TESTNUMBER0010 HTTP/1.1 177 Host: %HOSTIP:%HTTPPORT 178 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04= 179 User-Agent: curl/%VERSION 180 Accept: */* 181 182 </protocol> 183 </verify> 184 </testcase>