Initial commit of visual studio 9 git build superproject.
[git-build-vc9.git] / curl / tests / data / test555
blob45b38c203858ece1c906eed96eae2f65b08bc0a0
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\r
20 Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
21 Proxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"\r
22 Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts"\r
23 Proxy-Authenticate: NTLM\r
24 Content-Type: text/html; charset=iso-8859-1\r
25 Connection: close\r
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\r
33 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==\r
34 Content-Length: 34\r
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\r
43 Server: Microsoft-IIS/5.0\r
44 Content-Type: text/html; charset=iso-8859-1\r
45 Content-Length: 42\r
47 Contents of that page you requested, sir.
48 </data1002>
50 <datacheck>
51 HTTP/1.1 407 Authorization Required swsclose\r
52 Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
53 Proxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"\r
54 Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts"\r
55 Proxy-Authenticate: NTLM\r
56 Content-Type: text/html; charset=iso-8859-1\r
57 Connection: close\r
59 HTTP/1.1 407 Authorization Required to proxy me my dear\r
60 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==\r
61 Content-Length: 34\r
63 HTTP/1.1 200 Things are fine in proxy land swsclose\r
64 Server: Microsoft-IIS/5.0\r
65 Content-Type: text/html; charset=iso-8859-1\r
66 Content-Length: 42\r
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\r
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\r
105 Host: test.remote.server.com\r
106 Pragma: no-cache\r
107 Accept: */*\r
108 Proxy-Connection: Keep-Alive\r
109 Content-Length: 36\r
110 Content-Type: application/x-www-form-urlencoded\r
112 this is the blurb we want to upload
113 POST http://test.remote.server.com/path/555 HTTP/1.1\r
114 Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=\r
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\r
116 Host: test.remote.server.com\r
117 Pragma: no-cache\r
118 Accept: */*\r
119 Proxy-Connection: Keep-Alive\r
120 Content-Length: 0\r
121 Content-Type: application/x-www-form-urlencoded\r
123 POST http://test.remote.server.com/path/555 HTTP/1.1\r
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\r
126 Host: test.remote.server.com\r
127 Pragma: no-cache\r
128 Accept: */*\r
129 Proxy-Connection: Keep-Alive\r
130 Content-Length: 36\r
131 Content-Type: application/x-www-form-urlencoded\r
133 this is the blurb we want to upload
134 </protocol>
135 </verify>
136 </testcase>