quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

test2031 (8276B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 HTTP NTLM auth
      7 NTLM
      8 </keywords>
      9 </info>
     10 # Server-side
     11 <reply>
     12 
     13 <!-- First request has NTLM auth, wrong password -->
     14 <data100>
     15 HTTP/1.1 401 Need NTLM auth
     16 Server: Microsoft-IIS/5.0
     17 Content-Type: text/html; charset=iso-8859-1
     18 Content-Length: 27
     19 WWW-Authenticate: NTLM
     20 
     21 This is not the real page!
     22 </data100>
     23 
     24 <data1101>
     25 HTTP/1.1 401 NTLM intermediate
     26 Server: Microsoft-IIS/5.0
     27 Content-Type: text/html; charset=iso-8859-1
     28 Content-Length: 33
     29 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
     30 
     31 This is still not the real page!
     32 </data1101>
     33 
     34 <data1102>
     35 HTTP/1.1 401 Sorry wrong password
     36 Server: Microsoft-IIS/5.0
     37 Content-Type: text/html; charset=iso-8859-1
     38 Content-Length: 29
     39 WWW-Authenticate: NTLM
     40 
     41 This is a bad password page!
     42 </data1102>
     43 
     44 <!-- Second request has NTLM auth, right password -->
     45 <data200>
     46 HTTP/1.1 401 Need NTLM auth (2)
     47 Server: Microsoft-IIS/5.0
     48 Content-Type: text/html; charset=iso-8859-1
     49 Content-Length: 27
     50 WWW-Authenticate: NTLM
     51 
     52 This is not the real page!
     53 </data200>
     54 
     55 <data1201>
     56 HTTP/1.1 401 NTLM intermediate (2)
     57 Server: Microsoft-IIS/5.0
     58 Content-Type: text/html; charset=iso-8859-1
     59 Content-Length: 33
     60 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
     61 
     62 This is still not the real page!
     63 </data1201>
     64 
     65 <data1202>
     66 HTTP/1.1 200 Things are fine in server land
     67 Server: Microsoft-IIS/5.0
     68 Content-Type: text/html; charset=iso-8859-1
     69 Content-Length: 32
     70 
     71 Finally, this is the real page!
     72 </data1202>
     73 
     74 <!-- Third request has NTLM auth, wrong password -->
     75 <data300>
     76 HTTP/1.1 401 Need NTLM auth (3)
     77 Server: Microsoft-IIS/5.0
     78 Content-Type: text/html; charset=iso-8859-1
     79 Content-Length: 27
     80 WWW-Authenticate: NTLM
     81 
     82 This is not the real page!
     83 </data300>
     84 
     85 <data1301>
     86 HTTP/1.1 401 NTLM intermediate (3)
     87 Server: Microsoft-IIS/5.0
     88 Content-Type: text/html; charset=iso-8859-1
     89 Content-Length: 33
     90 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
     91 
     92 This is still not the real page!
     93 </data1301>
     94 
     95 <data1302>
     96 HTTP/1.1 401 Sorry wrong password (2)
     97 Server: Microsoft-IIS/5.0
     98 Content-Type: text/html; charset=iso-8859-1
     99 Content-Length: 29
    100 WWW-Authenticate: NTLM
    101 
    102 This is a bad password page!
    103 </data1302>
    104 
    105 <!-- Fourth request has NTLM auth, wrong password -->
    106 <data400>
    107 HTTP/1.1 401 Need NTLM auth (4)
    108 Server: Microsoft-IIS/5.0
    109 Content-Type: text/html; charset=iso-8859-1
    110 Content-Length: 27
    111 WWW-Authenticate: NTLM
    112 
    113 This is not the real page!
    114 </data400>
    115 
    116 <data1401>
    117 HTTP/1.1 401 NTLM intermediate (4)
    118 Server: Microsoft-IIS/5.0
    119 Content-Type: text/html; charset=iso-8859-1
    120 Content-Length: 33
    121 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
    122 
    123 This is still not the real page!
    124 </data1401>
    125 
    126 <data1402>
    127 HTTP/1.1 401 Sorry wrong password (3)
    128 Server: Microsoft-IIS/5.0
    129 Content-Type: text/html; charset=iso-8859-1
    130 Content-Length: 29
    131 WWW-Authenticate: NTLM
    132 
    133 This is a bad password page!
    134 </data1402>
    135 
    136 <!-- Fifth request has NTLM auth, right password -->
    137 <data500>
    138 HTTP/1.1 401 Need NTLM auth (5)
    139 Server: Microsoft-IIS/5.0
    140 Content-Type: text/html; charset=iso-8859-1
    141 Content-Length: 27
    142 WWW-Authenticate: NTLM
    143 
    144 This is not the real page!
    145 </data500>
    146 
    147 <data1501>
    148 HTTP/1.1 401 NTLM intermediate (5)
    149 Server: Microsoft-IIS/5.0
    150 Content-Type: text/html; charset=iso-8859-1
    151 Content-Length: 33
    152 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
    153 
    154 This is still not the real page!
    155 </data1501>
    156 
    157 <data1502>
    158 HTTP/1.1 200 Things are fine in server land (2)
    159 Server: Microsoft-IIS/5.0
    160 Content-Type: text/html; charset=iso-8859-1
    161 Content-Length: 32
    162 
    163 Finally, this is the real page!
    164 </data1502>
    165 
    166 <datacheck>
    167 HTTP/1.1 401 NTLM intermediate
    168 Server: Microsoft-IIS/5.0
    169 Content-Type: text/html; charset=iso-8859-1
    170 Content-Length: 33
    171 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
    172 
    173 HTTP/1.1 401 Sorry wrong password
    174 Server: Microsoft-IIS/5.0
    175 Content-Type: text/html; charset=iso-8859-1
    176 Content-Length: 29
    177 WWW-Authenticate: NTLM
    178 
    179 This is a bad password page!
    180 HTTP/1.1 401 NTLM intermediate (2)
    181 Server: Microsoft-IIS/5.0
    182 Content-Type: text/html; charset=iso-8859-1
    183 Content-Length: 33
    184 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
    185 
    186 HTTP/1.1 200 Things are fine in server land
    187 Server: Microsoft-IIS/5.0
    188 Content-Type: text/html; charset=iso-8859-1
    189 Content-Length: 32
    190 
    191 Finally, this is the real page!
    192 HTTP/1.1 401 NTLM intermediate (3)
    193 Server: Microsoft-IIS/5.0
    194 Content-Type: text/html; charset=iso-8859-1
    195 Content-Length: 33
    196 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
    197 
    198 HTTP/1.1 401 Sorry wrong password (2)
    199 Server: Microsoft-IIS/5.0
    200 Content-Type: text/html; charset=iso-8859-1
    201 Content-Length: 29
    202 WWW-Authenticate: NTLM
    203 
    204 This is a bad password page!
    205 HTTP/1.1 401 NTLM intermediate (4)
    206 Server: Microsoft-IIS/5.0
    207 Content-Type: text/html; charset=iso-8859-1
    208 Content-Length: 33
    209 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
    210 
    211 HTTP/1.1 401 Sorry wrong password (3)
    212 Server: Microsoft-IIS/5.0
    213 Content-Type: text/html; charset=iso-8859-1
    214 Content-Length: 29
    215 WWW-Authenticate: NTLM
    216 
    217 This is a bad password page!
    218 HTTP/1.1 401 NTLM intermediate (5)
    219 Server: Microsoft-IIS/5.0
    220 Content-Type: text/html; charset=iso-8859-1
    221 Content-Length: 33
    222 WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
    223 
    224 HTTP/1.1 200 Things are fine in server land (2)
    225 Server: Microsoft-IIS/5.0
    226 Content-Type: text/html; charset=iso-8859-1
    227 Content-Length: 32
    228 
    229 Finally, this is the real page!
    230 </datacheck>
    231 
    232 </reply>
    233 
    234 # Client-side
    235 <client>
    236 <features>
    237 NTLM
    238 SSL
    239 !SSPI
    240 </features>
    241 <server>
    242 http
    243 </server>
    244 <tool>
    245 lib2023
    246 </tool>
    247 
    248 <name>
    249 HTTP authorization retry (NTLM)
    250 </name>
    251 <command>
    252 http://%HOSTIP:%HTTPPORT/%TESTNUMBER ntlm ntlm
    253 </command>
    254 </client>
    255 
    256 # Verify data after the test has been "shot"
    257 <verify>
    258 <protocol>
    259 GET /%TESTNUMBER0100 HTTP/1.1
    260 Host: %HOSTIP:%HTTPPORT
    261 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
    262 Accept: */*
    263 
    264 GET /%TESTNUMBER0100 HTTP/1.1
    265 Host: %HOSTIP:%HTTPPORT
    266 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABANgKEcT5xUUBHw5+0m4FjWTGNzg6PeHJHbaPwNwCt/tXcnIeTQCTMAg12SPDyNXMf3Rlc3R1c2VyV09SS1NUQVRJT04=
    267 Accept: */*
    268 
    269 GET /%TESTNUMBER0200 HTTP/1.1
    270 Host: %HOSTIP:%HTTPPORT
    271 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
    272 Accept: */*
    273 
    274 GET /%TESTNUMBER0200 HTTP/1.1
    275 Host: %HOSTIP:%HTTPPORT
    276 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyV09SS1NUQVRJT04=
    277 Accept: */*
    278 
    279 GET /%TESTNUMBER0300 HTTP/1.1
    280 Host: %HOSTIP:%HTTPPORT
    281 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
    282 Accept: */*
    283 
    284 GET /%TESTNUMBER0300 HTTP/1.1
    285 Host: %HOSTIP:%HTTPPORT
    286 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABANgKEcT5xUUBHw5+0m4FjWTGNzg6PeHJHbaPwNwCt/tXcnIeTQCTMAg12SPDyNXMf3Rlc3R1c2VyV09SS1NUQVRJT04=
    287 Accept: */*
    288 
    289 GET /%TESTNUMBER0400 HTTP/1.1
    290 Host: %HOSTIP:%HTTPPORT
    291 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
    292 Accept: */*
    293 
    294 GET /%TESTNUMBER0400 HTTP/1.1
    295 Host: %HOSTIP:%HTTPPORT
    296 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABANgKEcT5xUUBHw5+0m4FjWTGNzg6PeHJHbaPwNwCt/tXcnIeTQCTMAg12SPDyNXMf3Rlc3R1c2VyV09SS1NUQVRJT04=
    297 Accept: */*
    298 
    299 GET /%TESTNUMBER0500 HTTP/1.1
    300 Host: %HOSTIP:%HTTPPORT
    301 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
    302 Accept: */*
    303 
    304 GET /%TESTNUMBER0500 HTTP/1.1
    305 Host: %HOSTIP:%HTTPPORT
    306 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyV09SS1NUQVRJT04=
    307 Accept: */*
    308 
    309 </protocol>
    310 </verify>
    311 </testcase>