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