Annotation of embedaddon/curl/tests/data/test68, revision 1.1.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: # This is supposed to be returned when the server gets a first
13: # Authorization: NTLM line passed-in from the client
14: <data1001>
15: HTTP/1.1 401 Now gimme that second request of crap
16: Server: Microsoft-IIS/5.0
17: Content-Length: 34
18: Content-Type: text/html; charset=iso-8859-1
19: WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
20:
21: This is not the real page either!
22: </data1001>
23:
24: # This is supposed to be returned when the server gets the second
25: # Authorization: NTLM line passed-in from the client
26: <data1002>
27: HTTP/1.1 401 You give me wrong password
28: Server: Microsoft-IIS/5.0
29: WWW-Authenticate: NTLM
30: Content-Length: 46
31: Content-Type: text/html; charset=iso-8859-1
32:
33: Wrong password dude. Get it fixed and return.
34: </data1002>
35:
36: <datacheck>
37: HTTP/1.1 401 Now gimme that second request of crap
38: Server: Microsoft-IIS/5.0
39: Content-Length: 34
40: Content-Type: text/html; charset=iso-8859-1
41: WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
42:
43: HTTP/1.1 401 You give me wrong password
44: Server: Microsoft-IIS/5.0
45: WWW-Authenticate: NTLM
46: Content-Length: 46
47: Content-Type: text/html; charset=iso-8859-1
48:
49: Wrong password dude. Get it fixed and return.
50: </datacheck>
51:
52: </reply>
53:
54: # Client-side
55: <client>
56: <features>
57: NTLM
58: SSL
59: !SSPI
60: debug
61: </features>
62: <server>
63: http
64: </server>
65: <name>
66: HTTP with NTLM authorization and wrong password
67: </name>
68: <setenv>
69: # we force our own host name, in order to make the test machine independent
70: CURL_GETHOSTNAME=curlhost
71: # we try to use the LD_PRELOAD hack, if not a debug build
72: LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
73: </setenv>
74: <command>
75: http://%HOSTIP:%HTTPPORT/68 -u testuser:testpass --ntlm
76: </command>
77: <precheck>
78: chkhostname curlhost
79: </precheck>
80: </client>
81:
82: # Verify data after the test has been "shot"
83: <verify>
84: <strip>
85: ^User-Agent:.*
86: </strip>
87: <protocol>
88: GET /68 HTTP/1.1
89: Host: %HOSTIP:%HTTPPORT
90: Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
91: 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
92: Accept: */*
93:
94: GET /68 HTTP/1.1
95: Host: %HOSTIP:%HTTPPORT
96: Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAAhoIBADQzMjE1MzIxAAAAAAAAAAAAAAAAAAAAADj3hs3u3j0kgJqCrLM+74BmaoNHDfIJjHRlc3R1c2VyY3VybGhvc3Q=
97: 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
98: Accept: */*
99:
100: </protocol>
101: </verify>
102: </testcase>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>