keyword update
[platform/upstream/curl.git] / tests / data / test90
1 <info>
2 <keywords>
3 HTTP
4 HTTP GET
5 HTTP NTLM auth
6 --anyauth
7 followlocation
8 </keywords>
9 </info>
10 # Server-side
11 <reply>
12
13 <data>
14 HTTP/1.1 401 Authorization Required swsclose\r
15 Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
16 WWW-Authenticate: Basic\r
17 WWW-Authenticate: Wild-and-crazy\r
18 WWW-Authenticate: NTLM\r
19 Content-Type: text/html; charset=iso-8859-1\r
20 \r
21 This is not the real page
22 </data>
23
24 # This is supposed to be returned when the server gets a first
25 # Authorization: NTLM line passed-in from the client
26 <data1001>
27 HTTP/1.1 401 Now gimme that second request of crap\r
28 Server: Microsoft-IIS/5.0\r
29 Content-Type: text/html; charset=iso-8859-1\r
30 Content-Length: 34\r
31 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==\r
32 \r
33 This is not the real page either!
34 </data1001>
35
36 # This is supposed to be returned when the server gets the second
37 # Authorization: NTLM line passed-in from the client
38 <data1002>
39 HTTP/1.1 301 Things are fine in server land swsclose\r
40 Server: Microsoft-IIS/5.0\r
41 Connection: close\r
42 Location: /you/900010\r
43 \r
44 </data1002>
45
46 # This is the first reply after the redirection
47 <data10>
48 HTTP/1.1 401 Authorization Required swsclose\r
49 Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
50 WWW-Authenticate: Basic\r
51 WWW-Authenticate: Wild-and-crazy\r
52 WWW-Authenticate: NTLM\r
53 Content-Type: text/html; charset=iso-8859-1\r
54 \r
55 This is not the real page
56 </data10>
57
58 <data1011>
59 HTTP/1.1 401 Now gimme that second round 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 This is not the real page either!
66 </data1011>
67
68 # This is supposed to be returned when the server gets the second
69 # Authorization: NTLM line passed-in from the client
70 <data1012>
71 HTTP/1.1 200 Things are fine in server land swsclose\r
72 Server: Microsoft-IIS/5.0\r
73 Content-Type: text/html; charset=iso-8859-1\r
74 \r
75 Finally, this is the real page!
76 </data1012>
77
78 <datacheck>
79 HTTP/1.1 401 Authorization Required swsclose\r
80 Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
81 WWW-Authenticate: Basic\r
82 WWW-Authenticate: Wild-and-crazy\r
83 WWW-Authenticate: NTLM\r
84 Content-Type: text/html; charset=iso-8859-1\r
85 \r
86 HTTP/1.1 401 Now gimme that second request of crap\r
87 Server: Microsoft-IIS/5.0\r
88 Content-Type: text/html; charset=iso-8859-1\r
89 Content-Length: 34\r
90 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==\r
91 \r
92 HTTP/1.1 301 Things are fine in server land swsclose\r
93 Server: Microsoft-IIS/5.0\r
94 Connection: close\r
95 Location: /you/900010\r
96 \r
97 HTTP/1.1 401 Authorization Required swsclose\r
98 Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
99 WWW-Authenticate: Basic\r
100 WWW-Authenticate: Wild-and-crazy\r
101 WWW-Authenticate: NTLM\r
102 Content-Type: text/html; charset=iso-8859-1\r
103 \r
104 HTTP/1.1 401 Now gimme that second round of crap\r
105 Server: Microsoft-IIS/5.0\r
106 Content-Type: text/html; charset=iso-8859-1\r
107 Content-Length: 34\r
108 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==\r
109 \r
110 HTTP/1.1 200 Things are fine in server land swsclose\r
111 Server: Microsoft-IIS/5.0\r
112 Content-Type: text/html; charset=iso-8859-1\r
113 \r
114 Finally, this is the real page!
115 </datacheck>
116
117 </reply>
118
119 # Client-side
120 <client>
121 <features>
122 NTLM
123 </features>
124 <server>
125 http
126 </server>
127  <name>
128 HTTP with NTLM via --anyauth, and then follow-location with NTLM again
129  </name>
130  <command>
131 http://%HOSTIP:%HTTPPORT/90 -u testuser:testpass --anyauth -L
132 </command>
133 </client>
134
135 # Verify data after the test has been "shot"
136 <verify>
137 <strip>
138 ^User-Agent:.*
139 </strip>
140 <protocol>
141 GET /90 HTTP/1.1\r
142 Host: 127.0.0.1:%HTTPPORT\r
143 Pragma: no-cache\r
144 Accept: */*\r
145 \r
146 GET /90 HTTP/1.1\r
147 Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=\r
148 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
149 Host: 127.0.0.1:%HTTPPORT\r
150 Pragma: no-cache\r
151 Accept: */*\r
152 \r
153 GET /90 HTTP/1.1\r
154 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145\r
155 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
156 Host: 127.0.0.1:%HTTPPORT\r
157 Pragma: no-cache\r
158 Accept: */*\r
159 \r
160 GET /you/900010 HTTP/1.1\r
161 Host: 127.0.0.1:%HTTPPORT\r
162 Pragma: no-cache\r
163 Accept: */*\r
164 \r
165 GET /you/900010 HTTP/1.1\r
166 Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=\r
167 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
168 Host: 127.0.0.1:%HTTPPORT\r
169 Pragma: no-cache\r
170 Accept: */*\r
171 \r
172 GET /you/900010 HTTP/1.1\r
173 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145\r
174 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
175 Host: 127.0.0.1:%HTTPPORT\r
176 Pragma: no-cache\r
177 Accept: */*\r
178 \r
179 </protocol>
180 </verify>