Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test150
blobb3f6c326f61f0bbe504c77d355ded724159bb1e8
1 <testcase>
3 <!-- Server-side -->
4 <reply>
6 <!-- no <data> in this test since we have NTLM from the start
8 This is supposed to be returned when the server gets a first
9 Authorization: NTLM line passed-in from the client -->
11 <data1001>
12 HTTP/1.1 401 Now gimme that second request of crap
13 Server: Microsoft-IIS/5.0
14 Content-Type: text/html; charset=iso-8859-1
15 Content-Length: 34
16 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
18 This is not the real page either!
19 </data1001>
21 # This is supposed to be returned when the server gets the second
22 # Authorization: NTLM line passed-in from the client
23 <data1002>
24 HTTP/1.1 200 Things are fine in server land swsclose
25 Server: Microsoft-IIS/5.0
26 Content-Type: text/html; charset=iso-8859-1
27 Content-Length: 32
29 Finally, this is the real page!
30 </data1002>
32 <datacheck>
33 HTTP/1.1 401 Now gimme that second request of crap
34 Server: Microsoft-IIS/5.0
35 Content-Type: text/html; charset=iso-8859-1
36 Content-Length: 34
37 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
39 HTTP/1.1 200 Things are fine in server land swsclose
40 Server: Microsoft-IIS/5.0
41 Content-Type: text/html; charset=iso-8859-1
42 Content-Length: 32
44 Finally, this is the real page!
45 </datacheck>
47 </reply>
49 # Client-side
50 <client>
51 <features>
52 NTLM
53 </features>
54 <server>
55 http
56 </server>
57  <name>
58 HTTP with NTLM authorization and --fail
59  </name>
60  <command>
61 http://%HOSTIP:%HTTPPORT/150 -u testuser:testpass --ntlm --fail
62 </command>
63 </client>
65 # Verify data after the test has been "shot"
66 <verify>
67 <strip>
68 ^User-Agent:.*
69 </strip>
70 # We strip off a large chunk of the type-2 NTLM message since it depends on
71 # the local host name and thus differs on different machines!
72 <strippart>
73 s/^(Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA).*/$1/
74 </strippart>
75 <protocol>
76 GET /150 HTTP/1.1
77 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
78 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
79 Host: %HOSTIP:%HTTPPORT
80 Accept: */*
82 GET /150 HTTP/1.1
83 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA
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
85 Host: %HOSTIP:%HTTPPORT
86 Accept: */*
88 </protocol>
89 </verify>
90 </testcase>