Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test68
blob0806219e5dd33a6b3f4fd7e2ab070a432d45fea9
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP NTLM auth
7 </keywords>
8 </info>
9 # Server-side
10 <reply>
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
16 Server: Microsoft-IIS/5.0
17 Content-Length: 34
18 Content-Type: text/html; charset=iso-8859-1
19 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
21 This is not the real page either!
22 </data1001>
24 # This is supposed to be returned when the server gets the second
25 # Authorization: NTLM line passed-in from the client
26 <data1002>
27 HTTP/1.1 401 You give me wrong password
28 Server: Microsoft-IIS/5.0
29 WWW-Authenticate: NTLM
30 Content-Length: 46
31 Content-Type: text/html; charset=iso-8859-1
33 Wrong password dude. Get it fixed and return.
34 </data1002>
36 <datacheck>
37 HTTP/1.1 401 Now gimme that second request of crap
38 Server: Microsoft-IIS/5.0
39 Content-Length: 34
40 Content-Type: text/html; charset=iso-8859-1
41 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
43 HTTP/1.1 401 You give me wrong password
44 Server: Microsoft-IIS/5.0
45 WWW-Authenticate: NTLM
46 Content-Length: 46
47 Content-Type: text/html; charset=iso-8859-1
49 Wrong password dude. Get it fixed and return.
50 </datacheck>
52 </reply>
54 # Client-side
55 <client>
56 <features>
57 NTLM
58 </features>
59 <server>
60 http
61 </server>
62  <name>
63 HTTP with NTLM authorization and wrong password
64  </name>
65  <command>
66 http://%HOSTIP:%HTTPPORT/68 -u testuser:testpass --ntlm
67 </command>
68 </client>
70 # Verify data after the test has been "shot"
71 <verify>
72 <strip>
73 ^User-Agent:.*
74 </strip>
75 # We strip off a large chunk of the type-2 NTLM message since it depends on
76 # the local host name and thus differs on different machines!
77 <strippart>
78 s/^(Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA).*/$1/
79 </strippart>
80 <protocol>
81 GET /68 HTTP/1.1
82 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
83 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
84 Host: %HOSTIP:%HTTPPORT
85 Accept: */*
87 GET /68 HTTP/1.1
88 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA
89 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
90 Host: %HOSTIP:%HTTPPORT
91 Accept: */*
93 </protocol>
94 </verify>
95 </testcase>