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