Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test209
blobfde95e6220a68e3cc09494e4548cd34419d7c30d
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP CONNECT
7 HTTP proxy
8 HTTP proxy NTLM auth
9 </keywords>
10 </info>
12 # Server-side
13 <reply>
15 # this is returned first since we get no proxy-auth
16 <data1001>
17 HTTP/1.1 407 Authorization Required to proxy me my dear
18 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
20 And you should ignore this data.
21 </data1001>
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 200 Things are fine in proxy land
27 Server: Microsoft-IIS/5.0
28 Content-Type: text/html; charset=iso-8859-1
30 </data1002>
32 # this is returned when we get a GET!
33 <data2>
34 HTTP/1.1 200 OK
35 Date: Thu, 09 Nov 2010 14:49:00 GMT
36 Content-Length: 7
37 Connection: close
38 Content-Type: text/html
39 Funny-head: yesyes
41 daniel
42 </data2>
44 # then this is returned when we get proxy-auth
45 <data1000>
46 HTTP/1.1 200 OK swsbounce
47 Server: no
49 Nice proxy auth sir!
50 </data1000>
52 <datacheck>
53 HTTP/1.1 407 Authorization Required to proxy me my dear
54 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
56 HTTP/1.1 200 Things are fine in proxy land
57 Server: Microsoft-IIS/5.0
58 Content-Type: text/html; charset=iso-8859-1
60 HTTP/1.1 200 OK
61 Date: Thu, 09 Nov 2010 14:49:00 GMT
62 Content-Length: 7
63 Connection: close
64 Content-Type: text/html
65 Funny-head: yesyes
67 daniel
68 </datacheck>
69 </reply>
71 # Client-side
72 <client>
73 <server>
74 http
75 </server>
76 <features>
77 NTLM
78 </features>
79  <name>
80 HTTP proxy CONNECT auth NTLM
81  </name>
82  <command>
83 http://test.remote.server.com:209/path/2090002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-ntlm --proxytunnel
84 </command>
85 </client>
87 # Verify data after the test has been "shot"
88 <verify>
89 <strip>
90 ^User-Agent: curl/.*
91 </strip>
92 # We strip off a large chunk of the type-2 NTLM message since it depends on
93 # the local host name and thus differs on different machines!
94 <strippart>
95 s/^(Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAABQAFAHAAAAA).*/$1/
96 </strippart>
97 <protocol>
98 CONNECT test.remote.server.com:209 HTTP/1.0
99 Host: test.remote.server.com:209
100 Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
101 Proxy-Connection: Keep-Alive
103 CONNECT test.remote.server.com:209 HTTP/1.0
104 Host: test.remote.server.com:209
105 Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAABQAFAHAAAAA
106 Proxy-Connection: Keep-Alive
108 GET /path/2090002 HTTP/1.1
109 User-Agent: curl/7.12.3-CVS (i686-pc-linux-gnu) libcurl/7.12.3-CVS OpenSSL/0.9.6b zlib/1.1.4
110 Host: test.remote.server.com:209
111 Accept: */*
113 </protocol>
114 </verify>
115 </testcase>