Annotation of embedaddon/curl/tests/data/test2031, revision 1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>