Annotation of embedaddon/curl/tests/data/test90, revision 1.1
1.1 ! misho 1: <testcase>
! 2: <info>
! 3: <keywords>
! 4: HTTP
! 5: HTTP GET
! 6: HTTP NTLM auth
! 7: --anyauth
! 8: followlocation
! 9: </keywords>
! 10: </info>
! 11: # Server-side
! 12: <reply>
! 13:
! 14: <data>
! 15: HTTP/1.1 401 Authorization Required swsclose
! 16: Server: Apache/1.3.27 (Darwin) PHP/4.1.2
! 17: WWW-Authenticate: Basic
! 18: WWW-Authenticate: Wild-and-crazy
! 19: WWW-Authenticate: NTLM
! 20: Content-Type: text/html; charset=iso-8859-1
! 21: Content-Length: 26
! 22:
! 23: This is not the real page
! 24: </data>
! 25:
! 26: # This is supposed to be returned when the server gets a first
! 27: # Authorization: NTLM line passed-in from the client
! 28: <data1001>
! 29: HTTP/1.1 401 Now gimme that second request of crap
! 30: Server: Microsoft-IIS/5.0
! 31: Content-Type: text/html; charset=iso-8859-1
! 32: Content-Length: 34
! 33: WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
! 34:
! 35: This is not the real page either!
! 36: </data1001>
! 37:
! 38: # This is supposed to be returned when the server gets the second
! 39: # Authorization: NTLM line passed-in from the client
! 40: <data1002>
! 41: HTTP/1.1 301 Things are fine in server land swsclose
! 42: Server: Microsoft-IIS/5.0
! 43: Connection: close
! 44: Location: /you/900010
! 45:
! 46: </data1002>
! 47:
! 48: # This is the first reply after the redirection
! 49: <data10>
! 50: HTTP/1.1 401 Authorization Required swsclose
! 51: Server: Apache/1.3.27 (Darwin) PHP/4.1.2
! 52: WWW-Authenticate: Basic
! 53: WWW-Authenticate: Wild-and-crazy
! 54: WWW-Authenticate: NTLM
! 55: Content-Type: text/html; charset=iso-8859-1
! 56: Content-Length: 26
! 57:
! 58: This is not the real page
! 59: </data10>
! 60:
! 61: <data1011>
! 62: HTTP/1.1 401 Now gimme that second round of crap
! 63: Server: Microsoft-IIS/5.0
! 64: Content-Type: text/html; charset=iso-8859-1
! 65: Content-Length: 34
! 66: WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
! 67:
! 68: This is not the real page either!
! 69: </data1011>
! 70:
! 71: # This is supposed to be returned when the server gets the second
! 72: # Authorization: NTLM line passed-in from the client
! 73: <data1012>
! 74: HTTP/1.1 200 Things are fine in server land swsclose
! 75: Server: Microsoft-IIS/5.0
! 76: Content-Type: text/html; charset=iso-8859-1
! 77: Content-Length: 32
! 78:
! 79: Finally, this is the real page!
! 80: </data1012>
! 81:
! 82: <datacheck>
! 83: HTTP/1.1 401 Authorization Required swsclose
! 84: Server: Apache/1.3.27 (Darwin) PHP/4.1.2
! 85: WWW-Authenticate: Basic
! 86: WWW-Authenticate: Wild-and-crazy
! 87: WWW-Authenticate: NTLM
! 88: Content-Type: text/html; charset=iso-8859-1
! 89: Content-Length: 26
! 90:
! 91: HTTP/1.1 401 Now gimme that second request of crap
! 92: Server: Microsoft-IIS/5.0
! 93: Content-Type: text/html; charset=iso-8859-1
! 94: Content-Length: 34
! 95: WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
! 96:
! 97: HTTP/1.1 301 Things are fine in server land swsclose
! 98: Server: Microsoft-IIS/5.0
! 99: Connection: close
! 100: Location: /you/900010
! 101:
! 102: HTTP/1.1 401 Authorization Required swsclose
! 103: Server: Apache/1.3.27 (Darwin) PHP/4.1.2
! 104: WWW-Authenticate: Basic
! 105: WWW-Authenticate: Wild-and-crazy
! 106: WWW-Authenticate: NTLM
! 107: Content-Type: text/html; charset=iso-8859-1
! 108: Content-Length: 26
! 109:
! 110: HTTP/1.1 401 Now gimme that second round of crap
! 111: Server: Microsoft-IIS/5.0
! 112: Content-Type: text/html; charset=iso-8859-1
! 113: Content-Length: 34
! 114: WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
! 115:
! 116: HTTP/1.1 200 Things are fine in server land swsclose
! 117: Server: Microsoft-IIS/5.0
! 118: Content-Type: text/html; charset=iso-8859-1
! 119: Content-Length: 32
! 120:
! 121: Finally, this is the real page!
! 122: </datacheck>
! 123:
! 124: </reply>
! 125:
! 126: # Client-side
! 127: <client>
! 128: <features>
! 129: NTLM
! 130: SSL
! 131: !SSPI
! 132: debug
! 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: <setenv>
! 141: # we force our own host name, in order to make the test machine independent
! 142: CURL_GETHOSTNAME=curlhost
! 143: # we try to use the LD_PRELOAD hack, if not a debug build
! 144: LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
! 145: </setenv>
! 146: <command>
! 147: http://%HOSTIP:%HTTPPORT/90 -u testuser:testpass --anyauth -L
! 148: </command>
! 149: <precheck>
! 150: chkhostname curlhost
! 151: </precheck>
! 152: </client>
! 153:
! 154: # Verify data after the test has been "shot"
! 155: <verify>
! 156: <strip>
! 157: ^User-Agent:.*
! 158: </strip>
! 159: <protocol>
! 160: GET /90 HTTP/1.1
! 161: Host: %HOSTIP:%HTTPPORT
! 162: Accept: */*
! 163:
! 164: GET /90 HTTP/1.1
! 165: Host: %HOSTIP:%HTTPPORT
! 166: Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
! 167: User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3
! 168: Accept: */*
! 169:
! 170: GET /90 HTTP/1.1
! 171: Host: %HOSTIP:%HTTPPORT
! 172: Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAAhoIBADQzMjE1MzIxAAAAAAAAAAAAAAAAAAAAADj3hs3u3j0kgJqCrLM+74BmaoNHDfIJjHRlc3R1c2VyY3VybGhvc3Q=
! 173: User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3
! 174: Accept: */*
! 175:
! 176: GET /you/900010 HTTP/1.1
! 177: Host: %HOSTIP:%HTTPPORT
! 178: Accept: */*
! 179:
! 180: GET /you/900010 HTTP/1.1
! 181: Host: %HOSTIP:%HTTPPORT
! 182: Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
! 183: User-Agent: curl/7.10.8-pre1 (i686-pc-linux-gnu) libcurl/7.10.8-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS
! 184: Accept: */*
! 185:
! 186: GET /you/900010 HTTP/1.1
! 187: Host: %HOSTIP:%HTTPPORT
! 188: Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAAhoIBADYzMjE3MzIxAAAAAAAAAAAAAAAAAAAAAEcJ4YHOeb5ga2TCPwDhkyUIuHjBUHcLaHRlc3R1c2VyY3VybGhvc3Q=
! 189: User-Agent: curl/7.10.8-pre1 (i686-pc-linux-gnu) libcurl/7.10.8-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS
! 190: Accept: */*
! 191:
! 192: </protocol>
! 193: </verify>
! 194: </testcase>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>