cut off a bit more of the type-2 ntlm message since it differs between
[platform/upstream/curl.git] / tests / data / test68
1 <info>
2 <keywords>
3 HTTP
4 HTTP GET
5 HTTP NTLM auth
6 </keywords>
7 </info>
8 # Server-side
9 <reply>
10
11 # This is supposed to be returned when the server gets a first
12 # Authorization: NTLM line passed-in from the client
13 <data1001>
14 HTTP/1.1 401 Now gimme that second request of crap\r
15 Server: Microsoft-IIS/5.0\r
16 Content-Length: 34\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 401 You give me wrong password\r
27 Server: Microsoft-IIS/5.0\r
28 WWW-Authenticate: NTLM\r
29 Content-Length: 46\r
30 Content-Type: text/html; charset=iso-8859-1\r
31 \r
32 Wrong password dude. Get it fixed and return.
33 </data1002>
34
35 <datacheck>
36 HTTP/1.1 401 Now gimme that second request of crap\r
37 Server: Microsoft-IIS/5.0\r
38 Content-Length: 34\r
39 Content-Type: text/html; charset=iso-8859-1\r
40 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==\r
41 \r
42 HTTP/1.1 401 You give me wrong password\r
43 Server: Microsoft-IIS/5.0\r
44 WWW-Authenticate: NTLM\r
45 Content-Length: 46\r
46 Content-Type: text/html; charset=iso-8859-1\r
47 \r
48 Wrong password dude. Get it fixed and return.
49 </datacheck>
50
51 </reply>
52
53 # Client-side
54 <client>
55 <features>
56 NTLM
57 </features>
58 <server>
59 http
60 </server>
61  <name>
62 HTTP with NTLM authorization and wrong password
63  </name>
64  <command>
65 http://%HOSTIP:%HTTPPORT/68 -u testuser:testpass --ntlm
66 </command>
67 </client>
68
69 # Verify data after the test has been "shot"
70 <verify>
71 <strip>
72 ^User-Agent:.*
73 </strip>
74 # We strip off a large chunk of the type-2 NTLM message since it depends on
75 # the local host name and thus differs on different machines!
76 <strippart>
77 s/^(Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA).*/$1/
78 </strippart)
79 <protocol>
80 GET /68 HTTP/1.1\r
81 Authorization: NTLM TlRMTVNTUAABAAAABoIAAAAAAAAAAAAAAAAAAAAAAAA=\r
82 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
83 Host: 127.0.0.1:%HTTPPORT\r
84 Accept: */*\r
85 \r
86 GET /68 HTTP/1.1\r
87 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA
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:%HTTPPORT\r
90 Accept: */*\r
91 \r
92 </protocol>
93 </verify>