Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test555
blobae200742101e5c3e7f23ade934b4b79a71262f8e
1 <testcase>
2 # NOTE: this test case is a duplicate of 547 but the tool is built to use the
3 # multi interface instead of easy, but that shouldn't be noticable at all in
4 # this file!
5 <info>
6 <keywords>
7 HTTP
8 HTTP POST
9 POST callback
10 HTTP proxy NTLM auth
11 multi
12 </keywords>
13 </info>
15 # Server-side
16 <reply>
18 <data>
19 HTTP/1.1 407 Authorization Required swsclose
20 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
21 Proxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
22 Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts"
23 Proxy-Authenticate: NTLM
24 Content-Type: text/html; charset=iso-8859-1
25 Connection: close
27 This is not the real page
28 </data>
30 # this is returned first since we get no proxy-auth
31 <data1001>
32 HTTP/1.1 407 Authorization Required to proxy me my dear
33 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
34 Content-Length: 34
36 Hey you, authenticate or go away!
37 </data1001>
39 # This is supposed to be returned when the server gets the second
40 # Authorization: NTLM line passed-in from the client
41 <data1002>
42 HTTP/1.1 200 Things are fine in proxy land swsclose
43 Server: Microsoft-IIS/5.0
44 Content-Type: text/html; charset=iso-8859-1
45 Content-Length: 42
47 Contents of that page you requested, sir.
48 </data1002>
50 <datacheck>
51 HTTP/1.1 407 Authorization Required swsclose
52 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
53 Proxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
54 Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts"
55 Proxy-Authenticate: NTLM
56 Content-Type: text/html; charset=iso-8859-1
57 Connection: close
59 HTTP/1.1 407 Authorization Required to proxy me my dear
60 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
61 Content-Length: 34
63 HTTP/1.1 200 Things are fine in proxy land swsclose
64 Server: Microsoft-IIS/5.0
65 Content-Type: text/html; charset=iso-8859-1
66 Content-Length: 42
68 Contents of that page you requested, sir.
69 </datacheck>
70 </reply>
72 # Client-side
73 <client>
74 <server>
75 http
76 </server>
77 # tool to use
78 <tool>
79 lib555
80 </tool>
81 <features>
82 NTLM
83 </features>
84  <name>
85 HTTP proxy auth NTLM with POST data from read callback multi-if
86  </name>
87  <command>
88 http://test.remote.server.com/path/555 http://%HOSTIP:%HTTPPORT s1lly:pers0n
89 </command>
90 </client>
92 # Verify data after the test has been "shot"
93 <verify>
94 <strip>
95 ^User-Agent: curl/.*
96 </strip>
97 # We strip off a large chunk of the type-2 NTLM message since it depends on
98 # the local host name and thus differs on different machines!
99 <strippart>
100 s/^(Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAABQAFAHAAAAA).*/$1/
101 </strippart>
102 <protocol>
103 POST http://test.remote.server.com/path/555 HTTP/1.1
104 User-Agent: curl/7.13.2-CVS (i686-pc-linux-gnu) libcurl/7.13.2-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13
105 Host: test.remote.server.com
106 Pragma: no-cache
107 Accept: */*
108 Proxy-Connection: Keep-Alive
109 Content-Length: 36
110 Content-Type: application/x-www-form-urlencoded
112 this is the blurb we want to upload
113 POST http://test.remote.server.com/path/555 HTTP/1.1
114 Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
115 User-Agent: curl/7.13.2-CVS (i686-pc-linux-gnu) libcurl/7.13.2-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13
116 Host: test.remote.server.com
117 Pragma: no-cache
118 Accept: */*
119 Proxy-Connection: Keep-Alive
120 Content-Length: 0
121 Content-Type: application/x-www-form-urlencoded
123 POST http://test.remote.server.com/path/555 HTTP/1.1
124 Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAABQAFAHAAAAA
125 User-Agent: curl/7.13.2-CVS (i686-pc-linux-gnu) libcurl/7.13.2-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13
126 Host: test.remote.server.com
127 Pragma: no-cache
128 Accept: */*
129 Proxy-Connection: Keep-Alive
130 Content-Length: 36
131 Content-Type: application/x-www-form-urlencoded
133 this is the blurb we want to upload
134 </protocol>
135 </verify>
136 </testcase>