adjusted to the NTLM updates
[platform/upstream/curl.git] / tests / data / test69
1 # Server-side
2 <reply>
3 <data>
4 HTTP/1.1 401 Authorization Required\r
5 Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
6 WWW-Authenticate: Basic\r
7 WWW-Authenticate: Wild-and-crazy\r
8 WWW-Authenticate: NTLM\r
9 Content-Type: text/html; charset=iso-8859-1\r
10 \r
11 This is not the real page
12 </data>
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 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==\r
21 \r
22 This is not the real page either!
23 </data1001>
24
25 # This is supposed to be returned when the server gets the second
26 # Authorization: NTLM line passed-in from the client
27 <data1002>
28 HTTP/1.1 200 Things are fine in server land\r
29 Server: Microsoft-IIS/5.0\r
30 Content-Type: text/html; charset=iso-8859-1\r
31 \r
32 Finally, this is the real page!
33 </data1002>
34
35 <datacheck>
36 HTTP/1.1 401 Authorization Required\r
37 Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
38 WWW-Authenticate: Basic\r
39 WWW-Authenticate: Wild-and-crazy\r
40 WWW-Authenticate: NTLM\r
41 Content-Type: text/html; charset=iso-8859-1\r
42 \r
43 HTTP/1.1 401 Now gimme that second request of crap\r
44 Server: Microsoft-IIS/5.0\r
45 Content-Type: text/html; charset=iso-8859-1\r
46 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==\r
47 \r
48 HTTP/1.1 200 Things are fine in server land\r
49 Server: Microsoft-IIS/5.0\r
50 Content-Type: text/html; charset=iso-8859-1\r
51 \r
52 Finally, this is the real page!
53 </datacheck>
54
55 </reply>
56
57 # Client-side
58 <client>
59 # NTLM only works if SSL-support is present
60 <features>
61 SSL
62 </features>
63 <server>
64 http
65 </server>
66  <name>
67 HTTP with NTLM, Basic or Wild-and-crazy authorization
68  </name>
69  <command>
70 http://%HOSTIP:%HOSTPORT/69 -u testuser:testpass --anyauth
71 </command>
72 </test>
73
74 # Verify data after the test has been "shot"
75 <verify>
76 <strip>
77 ^User-Agent:.*
78 </strip>
79 <protocol>
80 GET /69 HTTP/1.1\r
81 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
82 Host: 127.0.0.1:8999\r
83 Pragma: no-cache\r
84 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r
85 \r
86 GET /69 HTTP/1.1\r
87 Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=\r
88 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
89 Host: 127.0.0.1:8999\r
90 Pragma: no-cache\r
91 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r
92 \r
93 GET /69 HTTP/1.1\r
94 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAFAAAAAAAAAAaAAAAAAAAABAAAAAEAAQAEAAAAAAAAAAUAAAAAAAAABoAAAAAYIAAHRlc3R1c2VyAAAAAAAAAABaZEMCkQmRTIY49LcOO8BIyh0R5b838UE=\r
95 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
96 Host: 127.0.0.1:8999\r
97 Pragma: no-cache\r
98 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r
99 \r
100 </protocol>
101 </verify>