Fixed some tag typos in the test data files.
[platform/upstream/curl.git] / tests / data / test89
1 <info>
2 <keywords>
3 HTTP
4 HTTP GET
5 HTTP NTLM auth
6 followlocation
7 </keywords>
8 </info>
9 # Server-side
10 <reply>
11
12 # no <data> in this test since we have NTLM from the start
13
14 # This is supposed to be returned when the server gets a first
15 # Authorization: NTLM line passed-in from the client
16 <data1001>
17 HTTP/1.1 401 Now gimme that second request of crap\r
18 Server: Microsoft-IIS/5.0\r
19 Content-Type: text/html; charset=iso-8859-1\r
20 Content-Length: 34\r
21 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==\r
22 \r
23 This is not the real page either!
24 </data1001>
25
26 # This is supposed to be returned when the server gets the second
27 # Authorization: NTLM line passed-in from the client
28 <data1002>
29 HTTP/1.1 301 Things are fine in server land swsclose\r
30 Server: Microsoft-IIS/5.0\r
31 Connection: close\r
32 Location: /you/890010\r
33 \r
34 </data1002>
35
36 # This is the first reply after the redirection
37 <data1011>
38 HTTP/1.1 401 Now gimme that second round of crap\r
39 Server: Microsoft-IIS/5.0\r
40 Content-Type: text/html; charset=iso-8859-1\r
41 Content-Length: 34\r
42 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==\r
43 \r
44 This is not the real page either!
45 </data1011>
46
47 # This is supposed to be returned when the server gets the second
48 # Authorization: NTLM line passed-in from the client
49 <data1012>
50 HTTP/1.1 200 Things are fine in server land swsclose\r
51 Server: Microsoft-IIS/5.0\r
52 Content-Type: text/html; charset=iso-8859-1\r
53 Content-Length: 32\r
54 \r
55 Finally, this is the real page!
56 </data1012>
57
58 <datacheck>
59 HTTP/1.1 401 Now gimme that second request of crap\r
60 Server: Microsoft-IIS/5.0\r
61 Content-Type: text/html; charset=iso-8859-1\r
62 Content-Length: 34\r
63 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==\r
64 \r
65 HTTP/1.1 301 Things are fine in server land swsclose\r
66 Server: Microsoft-IIS/5.0\r
67 Connection: close\r
68 Location: /you/890010\r
69 \r
70 HTTP/1.1 401 Now gimme that second round of crap\r
71 Server: Microsoft-IIS/5.0\r
72 Content-Type: text/html; charset=iso-8859-1\r
73 Content-Length: 34\r
74 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==\r
75 \r
76 HTTP/1.1 200 Things are fine in server land swsclose\r
77 Server: Microsoft-IIS/5.0\r
78 Content-Type: text/html; charset=iso-8859-1\r
79 Content-Length: 32\r
80 \r
81 Finally, this is the real page!
82 </datacheck>
83
84 </reply>
85
86 # Client-side
87 <client>
88 <features>
89 NTLM
90 </features>
91 <server>
92 http
93 </server>
94  <name>
95 HTTP with NTLM and follow-location
96  </name>
97  <command>
98 http://%HOSTIP:%HTTPPORT/89 -u testuser:testpass --ntlm -L
99 </command>
100 </client>
101
102 # Verify data after the test has been "shot"
103 <verify>
104 <strip>
105 ^User-Agent:.*
106 </strip>
107 # We strip off a large chunk of the type-2 NTLM message since it depends on
108 # the local host name and thus differs on different machines!
109 <strippart>
110 s/^(Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA).*/$1/
111 </strippart>
112 <protocol>
113 GET /89 HTTP/1.1\r
114 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=\r
115 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\r
116 Host: 127.0.0.1:%HTTPPORT\r
117 Accept: */*\r
118 \r
119 GET /89 HTTP/1.1\r
120 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA
121 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\r
122 Host: 127.0.0.1:%HTTPPORT\r
123 Accept: */*\r
124 \r
125 GET /you/890010 HTTP/1.1\r
126 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=\r
127 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\r
128 Host: 127.0.0.1:%HTTPPORT\r
129 Accept: */*\r
130 \r
131 GET /you/890010 HTTP/1.1\r
132 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA
133 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\r
134 Host: 127.0.0.1:%HTTPPORT\r
135 Accept: */*\r
136 \r
137 </protocol>
138 </verify>