Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test1021
blobe5a825fb6be8306ccad4b3cc127919b82667025a
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP CONNECT
7 HTTP proxy
8 HTTP proxy NTLM auth
9 --proxy-anyauth
10 </keywords>
11 </info>
12 # Server-side
13 <reply>
15 <data>
16 HTTP/1.1 407 Authorization Required to proxy me my dear swsclose
17 Proxy-Authenticate: NTLM
18 Content-Length: 21
19 Connection: close
21 data to discard
22 </data>
24 # this is returned first since we get no proxy-auth
25 <data1001>
26 HTTP/1.1 407 Authorization Required to proxy me my dear
27 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
28 Content-Length: 28
30 And you should ignore this data.
31 </data1001>
33 # This is supposed to be returned when the server gets the second
34 # Authorization: NTLM line passed-in from the client
35 <data1002>
36 HTTP/1.1 200 Things are fine in proxy land
37 Server: Microsoft-IIS/5.0
38 Content-Type: text/html; charset=iso-8859-1
40 </data1002>
42 # this is returned when we get a GET!
43 <data2>
44 HTTP/1.1 200 OK
45 Date: Thu, 09 Nov 2010 14:49:00 GMT
46 Content-Length: 7
47 Connection: close
48 Content-Type: text/html
49 Funny-head: yesyes
51 daniel
52 </data2>
54 # then this is returned when we get proxy-auth
55 <data1000>
56 HTTP/1.1 200 OK swsbounce
57 Server: no
59 Nice proxy auth sir!
60 </data1000>
62 <datacheck>
63 HTTP/1.1 407 Authorization Required to proxy me my dear swsclose
64 Proxy-Authenticate: NTLM
65 Content-Length: 21
66 Connection: close
68 HTTP/1.1 407 Authorization Required to proxy me my dear
69 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
70 Content-Length: 28
72 HTTP/1.1 200 Things are fine in proxy land
73 Server: Microsoft-IIS/5.0
74 Content-Type: text/html; charset=iso-8859-1
76 HTTP/1.1 200 OK
77 Date: Thu, 09 Nov 2010 14:49:00 GMT
78 Content-Length: 7
79 Connection: close
80 Content-Type: text/html
81 Funny-head: yesyes
83 daniel
84 </datacheck>
85 </reply>
87 # Client-side
88 <client>
89 <server>
90 http
91 </server>
92 <features>
93 NTLM
94 </features>
95  <name>
96 HTTP proxy CONNECT with any proxyauth and proxy offers NTLM and close
97  </name>
98  <command>
99 http://test.remote.server.com:1021/path/10210002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-anyauth --proxytunnel
100 </command>
101 </client>
103 # Verify data after the test has been "shot"
104 <verify>
105 <strip>
106 ^User-Agent: curl/.*
107 </strip>
108 # We strip off a large chunk of the type-2 NTLM message since it depends on
109 # the local host name and thus differs on different machines!
110 <strippart>
111 s/^(Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAABQAFAHAAAAA).*/$1/
112 </strippart>
113 <protocol>
114 CONNECT test.remote.server.com:1021 HTTP/1.0
115 Host: test.remote.server.com:1021
116 Proxy-Connection: Keep-Alive
118 CONNECT test.remote.server.com:1021 HTTP/1.0
119 Host: test.remote.server.com:1021
120 Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
121 Proxy-Connection: Keep-Alive
123 CONNECT test.remote.server.com:1021 HTTP/1.0
124 Host: test.remote.server.com:1021
125 Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAABQAFAHAAAAA
126 Proxy-Connection: Keep-Alive
128 GET /path/10210002 HTTP/1.1
129 User-Agent: curl/7.12.3-CVS (i686-pc-linux-gnu) libcurl/7.12.3-CVS OpenSSL/0.9.6b zlib/1.1.4
130 Host: test.remote.server.com:1021
131 Accept: */*
133 </protocol>
134 </verify>
135 </testcase>