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