Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test1008
blobe3b6b6522aee26f217607cb1d3f2070c8994e03a
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==
19 Transfer-Encoding: chunked
22 And you should ignore this data.
23 FA0
24 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX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XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
27 </data1001>
29 # This is supposed to be returned when the server gets the second
30 # Authorization: NTLM line passed-in from the client
31 <data1002>
32 HTTP/1.1 200 Things are fine in proxy land
33 Server: Microsoft-IIS/5.0
34 Content-Type: text/html; charset=iso-8859-1
36 </data1002>
38 # this is returned when we get a GET!
39 <data2>
40 HTTP/1.1 200 OK
41 Date: Thu, 09 Nov 2010 14:49:00 GMT
42 Content-Length: 7
43 Connection: close
44 Content-Type: text/html
45 Funny-head: yesyes
47 daniel
48 </data2>
50 # then this is returned when we get proxy-auth
51 <data1000>
52 HTTP/1.1 200 OK swsbounce
53 Server: no
55 Nice proxy auth sir!
56 </data1000>
58 <datacheck>
59 HTTP/1.1 407 Authorization Required to proxy me my dear
60 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
61 Transfer-Encoding: chunked
63 HTTP/1.1 200 Things are fine in proxy land
64 Server: Microsoft-IIS/5.0
65 Content-Type: text/html; charset=iso-8859-1
67 HTTP/1.1 200 OK
68 Date: Thu, 09 Nov 2010 14:49:00 GMT
69 Content-Length: 7
70 Connection: close
71 Content-Type: text/html
72 Funny-head: yesyes
74 daniel
75 </datacheck>
76 </reply>
78 # Client-side
79 <client>
80 <server>
81 http
82 </server>
83 <features>
84 NTLM
85 </features>
86  <name>
87 HTTP proxy CONNECT auth NTLM with chunked-encoded 407 response
88  </name>
89  <command>
90 http://test.remote.server.com:1008/path/10080002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-ntlm --proxytunnel
91 </command>
92 </client>
94 # Verify data after the test has been "shot"
95 <verify>
96 <strip>
97 ^User-Agent: curl/.*
98 </strip>
99 # We strip off a large chunk of the type-2 NTLM message since it depends on
100 # the local host name and thus differs on different machines!
101 <strippart>
102 s/^(Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAABQAFAHAAAAA).*/$1/
103 </strippart>
104 <protocol>
105 CONNECT test.remote.server.com:1008 HTTP/1.0
106 Host: test.remote.server.com:1008
107 Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
108 Proxy-Connection: Keep-Alive
110 CONNECT test.remote.server.com:1008 HTTP/1.0
111 Host: test.remote.server.com:1008
112 Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAABQAFAHAAAAA
113 Proxy-Connection: Keep-Alive
115 GET /path/10080002 HTTP/1.1
116 User-Agent: curl/7.12.3-CVS (i686-pc-linux-gnu) libcurl/7.12.3-CVS OpenSSL/0.9.6b zlib/1.1.4
117 Host: test.remote.server.com:1008
118 Accept: */*
120 </protocol>
121 </verify>
122 </testcase>