Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test81
blob37dac56a2681e4c0ab6c96bcef4cd54be6ced9d8
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP proxy 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 407 Now gimme that second request of crap
16 Server: Microsoft-IIS/5.0
17 Content-Type: text/html; charset=iso-8859-1
18 Content-Length: 34
19 Proxy-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 200 Things are fine in server land swsclose
28 Server: Microsoft-IIS/5.0
29 Content-Type: text/html; charset=iso-8859-1
30 Content-Length: 32
32 Finally, this is the real page!
33 </data1002>
35 <datacheck>
36 HTTP/1.1 407 Now gimme that second request of crap
37 Server: Microsoft-IIS/5.0
38 Content-Type: text/html; charset=iso-8859-1
39 Content-Length: 34
40 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
42 HTTP/1.1 200 Things are fine in server land swsclose
43 Server: Microsoft-IIS/5.0
44 Content-Type: text/html; charset=iso-8859-1
45 Content-Length: 32
47 Finally, this is the real page!
48 </datacheck>
50 </reply>
52 # Client-side
53 <client>
54 <features>
55 NTLM
56 </features>
57 <server>
58 http
59 </server>
60  <name>
61 HTTP with proxy using NTLM authorization
62  </name>
63  <command>
64 http://%HOSTIP:%HTTPPORT/81 --proxy-user testuser:testpass -x http://%HOSTIP:%HTTPPORT --proxy-ntlm
65 </command>
66 </client>
68 # Verify data after the test has been "shot"
69 <verify>
70 <strip>
71 ^User-Agent:.*
72 </strip>
73 # We strip off a large chunk of the type-2 NTLM message since it depends on
74 # the local host name and thus differs on different machines!
75 <strippart>
76 s/(Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA).*/$1/
77 </strippart>
78 <protocol>
79 GET http://%HOSTIP:%HTTPPORT/81 HTTP/1.1
80 Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
81 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
82 Host: %HOSTIP:%HTTPPORT
83 Pragma: no-cache
84 Accept: */*
85 Proxy-Connection: Keep-Alive
87 GET http://%HOSTIP:%HTTPPORT/81 HTTP/1.1
88 Proxy-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 Pragma: no-cache
92 Accept: */*
93 Proxy-Connection: Keep-Alive
95 </protocol>
96 </verify>
97 </testcase>